Refactor rsync

Update rsync to working code
Add methods to use web sockets to communicate with client to perform a sync
Yeah you kind of added a lot of trailing white spaces, so use the extension and strip them all off (It should do it for you once you save the file.)