getDevice and checkPermissions are moved to DeviceCommandService
Merge remote-tracking branch 'origin/master'