Fixed missing usages of the WSGI encoding dance.

Added new functions to deal with the WSGI environment on
Python 2 and Python 3 in the same way:

- get_script_name
- get_query_string
- get_path_info

Also made the peeking and poking of path infos in the
environment dictionary return properly decoded unicode
to avoid exposing the encoding dance to users.