Implemented a very ugly initial client class for calling the REST API.