[entropy.db.sql] fix retrieveDependencies() usage of resolve_conditional_deps
[entropy.client] code style updates to dependencies_test()
[entropy.db.sqlite] add in-RAM cache support for retrieveDependencies()

This seems to give 15% speed boost in certain scenarios