WIP: Add server side web socket interface for server->client sync

Update rsync to working code
Add methods to use web sockets to communicate with client to perform a sync
Can we please get JSHint going on travis builds so we don't miss stuff like this?