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
I guess you're still fixing or adding stuff, but this is failing because `ws` is still undefined at this point.