hgweb: Search templates in templatepath/style/map, too, using a common function.
This allows for web templates to be self-contained in a directory, which makes
copying and modifying them easier.
#!/bin/shhg init aecho a > a/ahg --cwd a ci -A -m ahg clone a becho b > b/bhg --cwd b ci -A -m bchmod 100 a/.hghg --cwd b push ../achmod 700 a/.hg