Remove duplicated middleware file.
Refactor extension file to use the same callback format as the MM documentation and pass source_dir and environment settings to middleware.
Initial $_SERVER implementation.