Refactor rsync

Update rsync to working code
Add methods to use web sockets to communicate with client to perform a sync
Its actually a readability thing. I usually add whitespaces between var decs and other code