Implements longpollajax, longpolljsonp by mimicking #6