Refactor rsync

Update rsync to working code
Add methods to use web sockets to communicate with client to perform a sync
I do use it directly, it is being passed to appendBuffer