add id to <figure> demos
remove unnecessary xml prolog
update stamping out from templates to be able to use *actual* html5 template elements (in the html namespace, not svg namespace)

create space for html captions
reorder
improve how relevant dom for a demo is stored
remove unnecessary element
show captions in adjacent HTML dom, not SVG DOM