Foundations of Social Evolution