Issue #315: Nice dependency listings for packages

using recursive functions for output
Merge pull request #395 from thriqon/pretty-print-dependencies-315

Issue #315: Nice dependency listings for packages