Handle issues decoding requests more gracefully

Clean up some pep8/pylint violations as well
Add in the ability to handle malformed return urls.
Address code review feedback
Merge pull request #290 from edx/diana/open-id-namespace

Handle issues decoding openid requests more gracefully