Move chat log HTML generation to bot

Offload all the HTML generation for the chat log into the bot, where it can happen gradually over time as things are said... rather than building it all at once when the archive page is loaded.