Lysis: a platform for IoT distributed applications over socially connected objects