Trait-Driven Models of Ecology and Evolution