clean up minor formatting and imports
clean up minor formatting issues
DeviceDao accessing Graph database
more sane check for isValidUser
simplify DevicesResource
greatly enhance robustness and documentation of Device related classes