Major re-write; add ability to have multiple thermostats