Add function returning memory as BTree
Search in 'memory' given by dump_memory()
Reimplement package_files() without using subprocess and equery