add HTML5 validation Grunt task

Also includes fixes to make the HTML validate.
Fixes #282.