Added a base Sensor function and Barometer, VelocitySensor models. Refactored the view code to use these models. Fixed some jshint issues.