wip rsync protocol: reuse stringIO, many fixes