Dpy injector refactor

Tiny refactor of Dependency injector. Les c++11, more performances (just a little), more logic. Not a revolution :tongue: