Make various fixes/cleanup to HTML templates

Includes tabs/four spaces -> two spaces, moving header rows to thead
and other rows to tbody, closing unclosed tabs, and removing optional
self-closing slashes