WIP

The reading/writing of complete pack file works.
- need to remove the debug statements
- would be nice to optimize the creation of SHA1 from bigstrings (later)

The writing of index files is broken.