Move TFOOT to after TBODY element throughout templates and classes

>### [WHATWG HTML5: 4.9.7 The `tfoot` element](http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#the-tfoot-element)
Contexts in which this element can be used:
* As a child of a table element [...] before any `tbody` and `tr` elements [...]
* As a child of a table element, **after** any [...] `tbody`, and `tr` elements [...]