Modified struct serializers.
Merge branch 'master' of https://github.com/starand/cpp
SmartHouse. Fixed issue with reconnect.