hgweb: use computed base URL from parsed request
Let's not reinvent URL construction in a function that runs the
templater.
Differential Revision: https://phab.mercurial-scm.org/D2735
#require docutils gettext $ $TESTDIR/check-gendoc zh_CN checking for parse errors