Add a HTML5-output mode.

Instead of generating <h[1-6]> headers we generate nested <section>
elements, each with a <h1> as preferred by HTML5.
Allow specifying rendering mode in sanitizer as well.