WIP import: an api for generating packs from blobs

This is the first of many steps to implement an analog of git-core's
fast-import.

TODO: actually write a pack, not loose objects