A networking library for HTTP long polling / comet connections