redirect.cgi: Introduce a small template engine for the error pages.