general code streamlining
add simple text templating function

mainly intended for HTML composition. Template source text
is marked up with [[TOKENS]], which are filled from assoc-list.
Each key in the alist is a symbol whose upcase'd name is matched
against tokens in the template, which are replaced with the
key's corresponding string value.