[entropy.server] drained_dependencies_test: split method into two

This allows for easier caching implementation
[entropy.server] drained_dependencies_test: add disk caching

The test phase is called frequently in both commit and push phases.
However, between commit and push there are no changes to the repository
database content and caching out this test greatly improves speed.