added write_structure_tree<HTML_FORMAT> output.

most of the time we generate the html file with the extra binary in the
example dir anyway. this will increase the code size but in the end it
is a useful functionality to have.