ref #4242, #4196 - systemState reengineering

Add a custom date-deserializer on and for the two date fields in systemMessages. The deserializer converts the json dates into java dates, which are then stored into the db. with those fixes, the system state is calculated now correctly.