html encode output

fixes #5
support helper functions

fixes #2
provide html.raw to bypass html encoding

fixes #8