Completed the Override Dependencies middleware.
Added test case for overriden dependencies.
Added appendOutput to Context.
Made prependOutput and appendOutput work on release builds too.
More control over the generation of script tags for the debug build.
Minor tweaks.