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.
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