Modelling the Ecological and Evolutionary Dynamics of Microbiomes within a Population of Hosts