Refactors CLI and coderd to use the ClientBuilder pattern rather than directly instantiating the Client.