Fixing format of sample JSON
Routes for activating and deactivating device
Merging imports in server.py