A Theoretical Framework for Trait-Based Eco-Evolutionary Dynamics: Population Structure, Intraspecific Variation, and Community Assembly