A Framework for Modelling and Implementing Self-Organising Coordination