A Framework for Modelling and Simulating Networks of Cells