Added a proxy around calls to the httpclient to allow for mocking in unit tests