wsgi.Middleware factory should use **kwargs

Fixes bug 1190978

Change-Id: Ifb0673b7aab5292c13bf5c86c5cc2de8096f7e3e
Merge "wsgi.Middleware factory should use **kwargs"