Thermo server

I think this works now. 

You may want to make the thermo server do one iteration of generating thermo data before entering the "wait for data from the socket" loop, because I think it loads the database in a lazy fashion (i.e. it won't load all the stuff until it needs it).