Sandbox calls to TemplateHook.applies_to()

Extensions that create a TemplateHook subclass with a new applies_to function
can throw an exception inside Djblets. The part of Djblets that calls that
method has been sandboxed.

Now when a TemplateHook subclass's applies_to() function from an extension
throws an exception, the error is caught and logged.

Testing Done:
Unit test has been written to make sure that applies_to() from a TemplateHook
subclass has been called, and when an exception is thrown it gets logged.

The test fails without the sandboxing, and succeeds with it.

Reviewed at https://reviews.reviewboard.org/r/6545/
Merge branch 'release-0.8.x'
Fix a regression in passing signal arguments in SignalHook.

The recent sandboxing of SignalHook broke the passing of arguments to
the callback. This fixes that by passing kwargs, and adds a unit test to
ensure it doesn't break again.

Reviewed at https://reviews.reviewboard.org/r/6580/
Enhance extensibility of the siteconfig settings template.

The siteconfig settings template has some new blocks that allow for
better overriding of content, especially when used through the
configure_extension.html template.

The page title can now be changed without overriding the entire title
tag. There's a block for the particular page's subtitle, separate from
the page-wide title block.

The buttons box at the bottom of the page can be replaced or augmented
as well. The Save button can be replaced, and pages can add additional
buttons wherever they wish.

Reviewed at https://reviews.reviewboard.org/r/6581/
Merge branch 'release-0.7.x' into release-0.8.x
Merge branch 'release-0.8.x'
Refactor the alphabetic paginator changes into new AlphanumericDatagrid subclass.

This changes the implementation of the alphabetic paginator to be a subclass of
the Datagrid (AlphanumericDatagrid). The paginator(s) are no longer rendered
using template tags, but instead a render_paginator function, which uses
settings that are overloaded by the alphanumericDataGrid.

Testing Done:
- Unit tests all pass
- All button cases manually tested. (Forward, back, first and last arrows, each
  letter).
- Verified that  changes to not affect any other module that inherits from
  datagrid (such as the groups list, or the all review requests list, the
  current 'master' of reviewboard with no changes to the userGrid).

Bugs closed: 829

Reviewed at https://reviews.reviewboard.org/r/6521/