[NEXUS-7581] CMA HTTP Client factory

https://issues.sonatype.org/browse/NEXUS-7581
I was on the fence with that. Was thinking that implementing it like above will make the config simpler even if the code has duplication.