Pull the openid parameters out of the redirect history if we need to.

This gets the login method working with bodhi + pyramid_fas_openid. Prior to this change,
we never get to the 'Transaction in progress' page, so we need to grab the data from
the URL in our redirection history.
Use response.json() instead of json.loads(response.text)
Fix the urlparse imports
Merge pull request #80 from fedora-infra/feature/fedoauth-login-tweaks

fedoauth login tweaks