Refactor rsync

Update rsync to working code
Add methods to use web sockets to communicate with client to perform a sync
You might want to install extension that shows you whitespaces. It's a nit, but yeah :P