Port demo chat app from libevent-browserchannel-server.