Make rpc request return a response which can be serialized.
Add data structures for rpc response.