Support large repos

Instead of building a gazillion map[sha]offset, we mmap the idx files
and search dynamically in them.