handle properly long inactivity pauses and recieving duplicates
reformat recieving code & make it threadsafe
make #getMissedMessages public api
Merge pull request #47 from razum2um/master

handle properly long inactivity pauses and recieving duplicates