Add the ability to register and receive invocations of local RPC methods. Note that this CL does not yet have testing.