issue #2 - Fix protocol serializers

Add unit test for the synchronization protocol serializers.
Fix incorrect parsing of JSon.
issue #2 - Use serializers in SyncServer

Since we now have working serializers, use them in the server interface.