Html validation

Some commits to improve how well the site validates as correct HTML. Used http://validator.w3.org/ for checking.

With this set of commits, a Yale site running the latest code and a compilation of the latest fruitsalad theme, rendering a QSD page with empty content, validates correctly.