including userId
+support for Query class in API
simplified logic retrieving current locality; removed unused imports
support for userId field throughout Locality handling
getMathingDevices => getMatchingDevices (typo)
support for query types 0 through 5
Sensor renamed Environmental
Sensor renamed Environmental