were popes or kings more powerful in medieval times?