add pretag and tag hooks.
pretag hook lets hook decide how tags can be named. tag hook is
notifier.
#header#<title>Mercurial Error</title></head><body><h2>Mercurial Error</h2><p>An error occured while processing your request:</p><p>#error|escape#</p>#footer#