templates: fixed htmlpage, we now close head correctly.
htmlcheck: using tidy to check every site page.