!per #3652 Custom snapshot and persistent message serialization

- Protobuf serializer for Persistent message
- Configurable serializer for Persistent message's payload
- Configurable serializer for snapshots
Merge pull request #1757 from eligosource/wip-3652-custom-serialization-krasserm

!per #3652 Custom snapshot and persistent message serialization