A Framework for the Decentralisation and Management of Collaborative Applications in Ubiquitous Computing Environments