added jshintrc
changed device types
changed passing app -> logger to device

some tidy up of jshint fixes