Add initial implementation of long-polling, server side (need bit of client support too)