Evolving Interactions and Emergent Functions in Microbial Consortia