Fix crash bug: wrong offset.
Write files in a better way.
Fix state transitions around chunk hashes.
Fix crash bug: Forgot to instantiate a new bundle when necessary.
Punt on dealing with non-regular files in bundles for now.