Implement tree command, move dependency tree directories to the cache
and output tree information to a text file and clean up temporary
directory structure.