Applying Ibn Khaldun: The Recovery of a Lost Tradition in Sociology