Gaia: evolutionary theory