Add basic support for protobuf rpc. Check in envelope so there is no dep...

...endency on the proto compiler.