Set the tracking branch for this branch.
Merge branch 'release-0.7.x'
Fix transferring of webapi decorator information.

The recent code to transfer webapi decorator information across
decorators and to intelligently merge them had a couple issues. The
@webapi_permission_required decorator was overwriting data, causing the
errors it sets to go away, and the code to merge checked some state too
late.
Fix datagrid pagination on Django 1.5.

Django 1.5 didn't like how we were attempting to access a variable in
the context that didn't exist, and would fail with a traceback.

We now guarantee that these variables always exist.
Merge branch 'release-0.7.x'
Reference the new djblets media bundles for the datagrid.

The datagrid template wasn't updated to use the new CSS and JavaScript
media bundles, causing the page to fail to render on a non-DEBUG
install. It now pulls in the proper bundles.
Add support for middleware to extensions.

This change adds the ability for extensions to add middleware. This is done by
setting the 'middleware' attribute on the extension's class to be a list of
class names. These are then injected into Django's list of middleware according
to the dependency structure of the extensions.

Testing done: All unit tests pass
Reviewed at https://reviews.reviewboard.org/r/4530/
Merge branch 'release-0.7.x'