Clean up hgweb imports
Use demandloading
Pull function-local imports up to demandload
Scope hg and ui bits
#header#
<title>Mercurial repositories index</title>
</head>
<body>
<h2>Mercurial Repositories</h2>
<table>
<tr>
<td>Name</td>
<td>Description</td>
<td>Contact</td>
<td>Last change</td>
<td> </td>
<tr>
#entries%indexentry#
</table>
#footer#