Add action hooks for the base page header.

The header contains the Review Board branding, as well as the find
input, account and support links. This change adds a
HeaderActionHook and HeaderDropdownActionHook that allows an extension
to add items to the header.

Reviewed at https://reviews.reviewboard.org/r/4624/.
Use the correct executable in setup.py

In setup.py, sys.executable contains the path of the current python interpreter
and one should use it when running a different script.

Testing done: On a system where the executable is /usr/bin/python2.
Reviewed at https://reviews.reviewboard.org/r/4633/
Use the correct executable in setup.py

In setup.py, sys.executable contains the path of the current python interpreter
and one should use it when running a different script.

Testing done: On a system where the executable is /usr/bin/python2.
Reviewed at https://reviews.reviewboard.org/r/4633/
Merge branch 'release-1.7.x'
Fix issues with docs generation on Django 1.5.

Docs generation on Django 1.5 didn't work due to the 'reset' management
command being removed. We used this command to remove the SCMTool data
that gets installed by default on a database, but another option is to
just run with RUNNING_TEST=1, which will bypass that.

The payload data also needed to be split on \r\n\r\n instead of \n\n.

Along with this, to help with error output, I added another where=
for a parse_text call, and made the assertion check less strict.
Don't reload the diff viewer when changing revisions.

This change adds a new API resource called "diff-context" which can take the
same revision/interdiff parameters as the diffviewer view, but will return only
the JSON data needed to replace the page.

This is wired up to some AJAX on the client side which will take the new
revision and change out all the data on the models. A backbone router will make
sure that the URL and browser history get appropriately updated.

At the moment this can be a little annoying because our UI jumps around when
things like the current-revision label get replaced. I'll be reworking some of
these UI elements to make sure that they use up the same amount of vertical
space for different diff revisions.

The next major steps, in addition to preventing things from jumping around, are
a redesign of the revision selector widget, and a redesign of how we do
pagination.

Testing done:
Loaded a bunch of different diff and interdiff revisions. Verified that all of
the appropriate UI elements (file index, files, revision label, revision
selector, comments hint) were updated in-place. Checked that pagination still
worked.

Reviewed at https://reviews.reviewboard.org/r/4630/
Fix docs generation properly.

My previous fix for docs generation didn't actually work. It just
appeared to, due to my test conditions.

We now set RUNNING_TEST = True in settings, which is where it should
go. The Makefile no longer has to set it.

make clean also now removes the database, and this is called when
fixtures change.