Add a check for service registry being removed during service installation.
Unify injector and dependency from API point-of-view
Also, make injection work.