fcgi: make it possible to use the installed version of flup instead of builtin version.
The environment varialbe TRAC_USE_FLUP needs to be set to `1` in order to force the use of flup.
If `flup` is used, we need to insert some WSGI middleware in order to deal with URL encoding.