NEXUS-7575: UA not set for some HTTP exchanges

Like HTTP CONNECT for tunneled proxy. Applied fix
and added UT that checks some cases and verifies UA
is set.

Issue
https://issues.sonatype.org/browse/NEXUS-7575

CI
http://bamboo.s/browse/NX-OSSF341