Add proper error handling to Authorization code view
Add comment for https://code.djangoproject.com/ticket/17795
Post auth now use form data. Add tests and pep8 fix