Fix issue 252 - Add reconnection option

This is a first swing on adding `reconnection` option.
We kind of need this to be added to test with Mobile-Appmaker and also to deploy to server where WebSocket will be close when there is no activity from client to server and likewise.

Other options can be added later such as reconnectDelay and many others as suggested in the ticket #252.

Unit test for this will be add ASAP, but I want this to be review at least to be sure what I'm doing here is what we need.
So the reason I have `getTokenConnect` is that everytime when we reconnect we need to make sure we create a new `SyncManager` before we are connecting again otherwise the state of sync will be wrong and it. I can make it work in the same file here, but that will require quite changes in order to make it work as expected.