Refactor rsync

Update rsync to working code
Add methods to use web sockets to communicate with client to perform a sync
You missed this bit.  `validateParams` should return `true` if the params are valid, so you can do this: `if(!validateParams(...)) {//deal with problems}`