make-repo: Add smart build ordering. Enhance right/key caching.

This uses dependency depth to determine an optimal build order. Packages
with no blackarch-provided dependencies are built first. Packages that
are not required by any other blackarch packages are build last.

This also makes it less likely that sudo's right-caching will time out
during the build.