Virtual IoT: Building and Managing IoT Apps With Lightweight M2M