Update ServerMain.java

Added some more framework for the three time periods of eco-mode. Fixed bugs with tracking how much time left, and the progress bar works, but something is going wrong on times too close to the current and/or times that involve half hours.