Dpy injector refactor

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