Add automatic thermostat based on time. Some clean-up. Changed Log file format.

Will add user menu to control it later.