Fixes for JENKINS-22342, bad gitweb urls

Not sure about whether the protected normalizeUrl is the right javay way to do this, I don't do java.