Indexer: add bindings for the pack indexer

This allows the user to index a packfile they have in a file or are
retrieving through a Stream.