long polling adapter and REFACTORING

This is the first push after a long time.
I'm so sorry but I probably broke your application.
Unfortunately I found better to change a lot of stuff in ChatJS to make
it better.
fixup! long polling adapter and REFACTORING
Fixing things up
1.1 - Introducing LongPolling