with-html-snippet: accept the sink to use when building the html snippet
added join-text which operates on trees of strings lists and dom nodes
and returns their joined text

re ADWolf:#1172