Wrapping HTML table headers in a <thead> tag

- More standards-compliant
- Easy jQuery-dataTables integration
- Included test changes