On the Medieval Origins of the Modern State