Cleanup - reorg in main
Refactored quite a bit of the code. Put TempSensorHistory  into the TempSensor interface (via the Impl).