Pervasive Middleware Goes Social: the SAPERE Approach