Before the Lodges: The Medieval Code That Created Freemasonry