Add wsgi middleware.