moved cache and config services to DIC

Moved config and cache services to DIC with the help of bridged factory services.