A long polling chat server and client