Deleted resources of devices and modes. Added get device and add device
service. Added queries resources.