Add the ability to register and receive invocations of local RPC methods

Note: This CL does not yet have testing.