support rsync file transfers.

Support file upload and download with rsync.