[NEXUS-7581] CMA HTTP Client factory

https://issues.sonatype.org/browse/NEXUS-7581
http://bamboo.s/browse/NX-OSSF367
`wrappedRequest.getURI().toASCIIString()` also appears below, could save this in a local field before the try block to avoid encoding it twice.