Early HTML previewer

Definitely a work in progress, basic functionality is in place, needs
more and better logic