Add basic support for rpc errors from the protobuf/http server

This is still a work in progress, we still need to type our exceptions better