Use Sha1FromByteSlice in core.Stream.rehash
Add format package and introduce the Index type
Document the purpose of the format package