MAID-390-cereal_integration_common

Replacing protobuf with cereal in common and adding global helper functions to serialize.
We generally avoid default-initialising integral values.