The Foundations of Medieval Papal Legation