WIP: Dist-copy sync

Still adding tests for upload and bi-directional
@markhibberd