add support for http-long-poll channel multiplexing
refactor HTTPLongPoll handlers