Added with-html5-document and with-html5-document-to-string

This was exacerbated by CHTMLs refusal to output a doctype missing the
system id.  Had to add a new sink class etc.  As such currently only
works on character streams