Add write_revision method to Metadata
Save revision after end of transfer in LocalStorage
Add basic resuming for transfers