Package manager - Improved output of the "list" command

* Also added a couple chunking functions to utils.misc