Include path + Middleware refactoring

I'm implementing the default include_path pointing to the directory of the script that should bring some consistency. Also I refactored the whole injection logic and cleaned up the code.

After this changes I was able to run several script that failed before! There might be missing pieces yet but the environment is now much closer to the CGI.