Refactored sensors and switches into lib project. Moved logic into SensorManager. Renamed SensorManager to HardwareManager.