Output (more) valid html

This does two things:

* Use a document fragment so Nokogiri doesn't litter the output with
  hundreds of open&close body tags.
* Drop the old style doctype in favor of html5.
Merge pull request #190 from binford2k/ticket/189/valid_html

Output (more) valid html