Changed the constructor to make it easier to set the client without adjusting or knowing the base URL.