CAS-1341: Offer the option to provide a new HTTP client implementation

First commit
Merge pull request #299 from leleuj/CAS-1341

CAS-1341: Offer the option to provide a new HTTP client implementation