Added basic wsgi middleware