Take wsgi environment from request (request.environ) instead of passing Request directly as environment

(WsgiApplication.__call__ takes wsgi environment as first argument, passing pyramid Request instead of it does not work, resulting in 'does not have __getitem__' exception).