Exposed metadata to HTML vis and added BEGIN/END commands

This resolves issue #167 - see that issue for the syntax in the HTML config file.