Pass the extension instance to SignalHook-registered signal callbacks.

When using SignalHook, the callback will now be passed an extension
instance as a keyword argument, making it easier to operate on the
extension or access settings without having to fetch the instance.

Due to the changes being made here, I've also changed sandbox behavior
so that we always log the error, even if we're not sandboxing.

Reviewed at https://reviews.reviewboard.org/r/6602/
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/
Merge branch 'release-0.8.x'