package-manifest uninstalls dependencies of dependencies

Function ```package-transitive-closure``` only calculates dependencies one level deep.  This means that, when calling ```package-manifest````, ```package-maybe-install``` will install the dependencies and then ```package-cleanup``` will immediately remove them.

To see this in action, try installing package ```gist```.

This pull request fixes this.