Added support for Rsync and refactored the pants off this thing.