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
If you're going to do the same sort of validation checks for each of these functions, move it to a separate `validateParams()` function and Don't Repeat Yourself (DRY).