Status reporting

Fixed bug in controller regarding exception handling
Added status reporting feature in thermoclient to output its current
state as JSON