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
See, this is safer.  Do what you're doing here in the other case too.  Even better, reuse the code!