HDS: a Software Framework for the Realization of Pervasive Applications