Refactor rsync tranfers to new module, adapt web to use it

Creates a new module which can be applied via wrappers or by instantiating defines in other classes. Adapts the web class to use it as PoC, changes to freight will follow once merged and tested.