Switch to Nokogiri::HTML for html writer

By switching to the HTML parser from the XML parser, we can better handle malformed html documents and save out something that at least marginally resembles the input HTML.
Merge pull request #46 from hotgazpacho/html-writer