Clean up HTML

* fix unclosed tags (link, meta, br)
* add content-type and charset meta tags
* fix incomplete entites
* moved bgcolor attribute into style attribute for consistency.