base: wsgi middlewares reorganization

* Fixing DebbugedApplication middleware usage.

* Moving the WSGIScriptAliasFix to the wsgi file so it only applies to
  Apache configuration.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>