Add (tested) serializers and deserializers for protobufs.

This makes it significantly easier to read and write a series of
protocol buffers using the library.