Lots of fixes, refactoring and improvements like long poll, missed messages interactive counter