Add as_html method to document objects

For quick & dirty dumping to HTML
Use ->as_html for HTML emitter tests
More notes
Add headlines HTML emitter test
Add emitter rule for headlines