Fixed Issue #33
Merge pull request #35 from gideonthomas/issue33

Fixed Issue #33
Delete xhr-provider.js

Closes issues #36
Merge pull request #37 from alicoding/master

Delete xhr-provider.js
Reduce complexity of routes definition, merge routes/index.js and routes/routes/index.js
Fix-up paths for require in server/routes/index.js
Don't leak connected client for username if not connected.
Merge pull request #39 from humphd/sync-onclose-cleanup

Don't leak connected client for username if not connected.
Update Unit Tests
fixes #11 and fixes #12. Reflects design changes for downstreamsyncing in accordance with full websocket implementation
Fixes client websocket authentication to send the token as the first step
Add complete websocket server implementation
Move syncmessage.js to lib and change references to it
Quick fix for unit tests
Fix issues 43 - error 500 on /api/sync
Fix issues #48 - Can not connect to Websocket
Fixes issues #49 - Make sure only do socket.send when connected
Fix getter caller syntax, drop () operator
Fix typo in tests
Rework Sync and SyncMessage to be more readable
Switch SyncMessage checks to use 'is' suger