adding long-polling chat, and fixing yet another timer bug