add long-polling support
add test for long polling
Merge pull request #47 from pyeremenko/v3

add long-polling support