The Foundations of Modern Science in the Middle Ages: Their religious, institutional and intellectual contexts