Store log as list of dicts.
Moved HTML functions to separate HtmlPageGenerator class.