base: wsgi middlewares reorganization

* Fixing DebbugedApplication middleware usage.

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

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