Added NewProtobufCodec() and Register() in codec.go.
Implemented codec.