Implement sync to create symlinks and call rsync

The sync middleware calls our rsync class to make the transfer
as this will also be used by the monitor middleware.