Fix docs building

To build the docs, we have to be able to import
django_browserid.tests.settings. To import that, it first imports
django_browserid.tests.__init__ which imports django_browserid.auth
which imports something which requires settings, but that's not loaded
yet, so everything goes down in a firey spiral of doom.

This fixes that by ridiculously importing those two things in the method
they're used rather than at the top level.
Determine auth backend from session.

Remove `backend` attribute from users fetched by the authentication
backend and rely on the backend string stored in the user's session to
determine if they were fetched by django-browserid.
Fix #195: Add support for Python 3.2 and 3.3 and enable tests on them.

Thanks to @senden9 for most of these fixes.
Use Django's version of six and drop Django 1.3 support.

Django 1.3 lacks a decorator we want to use for Python 3 support, and
given that 1.3 is out-of-date and we already have a few workarounds in
place to keep it working, it's time to drop it. This includes removing
the workarounds I know of to clean up the code a bit.
Fix #197: Use AJAX for submitting assertions instead of a hidden form.

This is a large change, and breaks backwards compatibility in a lot of
ways, including new JSON responses from Verify, a new JavaScript API,
and moved URLs.

- Change Verify to return JSON.
- Remove `next` parameter from Verify, since we no longer need to
  redirect users.
- Fix #198: Replace browserid_info helper with Info view. This lets us 
  retrieve the CSRF token without relying on the helper.
- Update the JavaScript API to a Promise-like interface using jQuery
  Deferreds, making the entire API async now that we're using AJAX.
- Add Logout view so logout can be done via AJAX as well.
- Add `next` parameter to browserid_logout helper.
- Fix a few broken tests that weren't asserting anything.
- Move sanity_check tests to the right test file.
- Remove pyquery dependency.
- Add tests for behavior that wasn't being tested.
Use dedicated settings file for building documentation.

Also fix up some paths in the API docs, remove `sanity_checks` from the 
documentation (it's not for use outside the library, mostly), and add
`MockVerifier` to the django_browserid init for importing.
Fix #145: Remove context processor.
Official support for Django 1.6.
Update SITE_URL references in docs

Fixes #213.
Run django==1.5.4 on travis
Fix json decoding error on python3 and added test case changes to support .json() method on _request

Problem fixed:

'response.content' is returned as a byte array, and json.loads will choke on it, leading to a failed log-in attempt, which you'd have see in the django logs as:

Failed to parse remote verifier response: `b'{"audience":"[redacted]","expires":1387148033218,"issuer":"gmail.login.persona.org","email":"[redacted]","status":"okay"}'`
Fix #222 - BROWSERID_AUDIENCES not necessary in debug mode
Add .persona-button to login button by default (if none provided).
Doh, forgot to update AUTHORS.
Note to self, check test method names more carefully.
Fix #196: Add support for BrowserID in the admin interface.

Also changes browserid_login and browserid_logout to not auto-add the
browserid-login/browserid-logout classes to links that they generate,
in order to allow code to use the helpers without forcing the buttons
to use the login code from browserid.js (the admin utilizes this).

Also also adds some licensing comments that we were missing.
#151: Add unit tests for JavaScript.

Extracts the API from browserid.js and moves it to a new file, api.js,
that authors can include on their own if they don't want the automatic
behavior of browserid.js. This also allows us to unit-test the API 
while ignoring the onload stuff from browserid.js.

There aren't tests yet for browserid.js as that would better be handled
by end-to-end tests using something like Selenium.
Remove support for named URLs; users can use reverse_lazy instead.
Fix #199: Test comments to docstrings and use test name for output.

Now, instead of showing the doctoring of a test, nose will show the 
function name of the test. Trick courtesy of andym.

All docstrings that were converted/written as normal comments have been
moved back to docstrings, and wrapped to 72 characters as per PEP8 
recommendations.
issue 232 - pull json out of old requests fetches