Social Differentiation, Integration and Adaptive Upgrading: The Stages of General Societal Evolution