move htmlpage to Page

so template can access htmlpage, it will allow some extractors do things like creating DOM tree from template htmlpage.