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.

Fixes #189