Fix JSON escaping, detect gaps in COMET sequence number.
Fix long polling, add new irc_conn event.