First set of fixes for uri module to work with py3.
First set of fixes for uri module to work with py3.

This fix handles changes in the response headers (no longer all
lowercased) and switches from unicode() to to_text().

thaim/ansible,thaim/ansible