allow thead and tfoot in HTML

see discussion on #105
Merge branch 'allow-html-thead-tfoot'