Towards a theoretical basis of paleoecology: concepts of community dynamics