[NEXUS-7581] CMA HTTP Client factory

https://issues.sonatype.org/browse/NEXUS-7581
so much duplication, any reason why you don't make simple classes to contain these common/duplicate bits?