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.
Merge pull request #815 from sonatype/NEXUS-7575-user-agent-not-set-connect

NEXUS-7575: UA not set for some HTTP exchanges