Refactor rsync

Update rsync to working code
Add methods to use web sockets to communicate with client to perform a sync
In this case, you already know that `err` is null by the time you get here, since you returned in 530 above if it wasn't.  Therefore, just use `null` as the first arg to explicitly document that this is a success case.