Revamp the Rake tasks

Upon attempting to test the Rake tasks, it was noticed that they were
not implemented particularly well.  This change does a massive
overhaul to those tasks and tests them completely to boot.

[#71229872]
Merge 71229872-dependency-cache-task to master

[Completes #71229872]