Add RPCFromClass and rename RPCFromPublicMethods to RPCFromObject