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

https://issues.sonatype.org/browse/NEXUS-6490
I think we should probably leave this as it was before and lean on the jetty container to do the right thing here.