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
This seems wrong, given that the `error` case was handled back on line 395.  Prefer `callback(null, result)` instead, which is more explicit.