The Ecological Context of Life History Evolution