Add an abstraction for RPC services, both generalized and for json requests.