Added a conversion tool between packs format.
Cleaning up some unused duam's code about pack handling.