Refactor rsync

Update rsync to working code
Add methods to use web sockets to communicate with client to perform a sync
Here's a good example.  You don't need this `return` statement at all, whereas you *do* need the one in 669, and *don't* need the one in 672.