On the medieval origins of the modern state