Fix review request fields on Local Sites.

Review request fields were breaking on Local Sites. One case involved an
invalid variable name (review_request.local_site_name), and the other
never passed a LocalSite to local_site_reverse.

This fixes both cases.
Fix allowing admins to reopen discarded review requests.

Due to a bad conditional, it wasn't possible for an admin (or user with
the appropriate permissions) to reopen a discarded review request. This
worked for submitted review requests, but not discarded.

The conditional now includes the permission check.

Reviewed at https://reviews.reviewboard.org/r/6144/
Merge branch 'release-1.7.x' into release-2.0.x
Remove some duplicate code from a merge in rb-site.

Some code from a backport of an rb-site change to 1.7 got merged back
into 2.0, causing a duplicate function and unused import. This removes
that code.
Handle all errors when checking if a diff dedup is needed on upgrade.

We were checking if an OperationalError was thrown when checking if a
diff dedup was needed during upgrade. Turns out, ProgrammingError can
also be thrown. We may find that more errors could be thrown in the
future.

We unit test that the unmigrated() function works, and Django's count()
should always work. So, trusting that, we're now just catching all
exceptions, instead of white-listing several exceptions. This will help
protect from new errors in the future (depending on database), and
ensure that the user will always be able to get through this (very
unimportant) part of the upgrade process.

Reviewed at https://reviews.reviewboard.org/r/6145/
Bump our Django Evolution dependency to 0.7.3.

This release includes fixes needed for upgrading from a Review Board
1.7.x or older release to Review Board 2.0.4+.
Include the revision in the "New Review Request" post-commit view.

This change adds the revision string to the list of commits in the post-commit
section of the "New Review Request" page. If the revision looks like a SHA-1
hash, we only show the first seven characters. Otherwise, we show the full
thing.

This also localizes the text in this view (I'm not sure how the "by ..."
slipped through).

Testing done:
Connected a github repo and opened the New Review Request page. Saw commit IDs.

Fixes bug 3402.

Reviewed at https://reviews.reviewboard.org/r/6140/
Show errors when trying to discard drafts.

The "Discard Draft" action would fail silently if something went wrong (for
example, if the server was inaccessible or the user was no longer logged in).
This change does some trivial plumbing to show the user an error in this case
(in the same way that we show other highly unexpected errors).

Testing done:
Loaded the page, killed my devserver, and tried to discard a draft. Saw an
alert that said "HTTP 0 error", which is at least better than nothing.

Sort-of addresses bug 3453.

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