Add support for msgpack encoding/decoding.