Grids for Ubiquitous Computing and Ambient Intelligence