Move implementation of client functions into client_impl, now route all client calls through the generated wrappers.