Rewrite RenderedPage to use an AST visitor, rather than SAX
Replace doHdr() in favour of a better lexer rule