Fixed bug with HtmlRenderer.

Also simplified interface: initialize no longer takes a 'stream'
parameter.