REVIEW: [NEXUS-6490] Calculate base url based on request headers

https://issues.sonatype.org/browse/NEXUS-6490
just curious why we are trying to replicate the logic that Jetty does itself?
http://download.eclipse.org/jetty/stable-8/xref/org/eclipse/jetty/server/AbstractConnector.html#432