3 Mechanisms of ecological response to changing environments: life history, plasticity and population dynamics