Now implemented templating the HTML output with Jinja2, and got the start of handling different events. HTML formatted events will now come out as HTML not just the plain text (the spec says I should sanitise the HTML but I'm not doing that yet), and next up will be downloading images I think.