M2M applications connected through Cloud-based infrastructure