Add ability to pass Restorer to RpcClient. Also various fixups

and added __dir__ reflection to DynamicCapabilityClient