Mining the Logs: The Origins of World History