Medieval statecraft and the perspectives of history