Fix potential KeyErrors when submitting the repo form without a path.

If the repository form in the admin is submitted with a custom hosting service
and an empty path, our validation would try to access the key directly without
checking if it exists. This is fine for most fields but not those which come
from ModelForm, so it fails. This change adds some simple validation to check
that the path is specified.
Make "Expand All" icon work in review request page.

The "+" icon to "Expand All" reviews on the review request page is now
click-able. Tested on local dev using Chrome 16.0.912.75.

Fixes bug 2439.
Reviewed at http://reviews.reviewboard.org/r/2801/
Open links in description and testing done sections in new windows.

Use _blank for the target on links which are entered in user-written fields.

Fixes bug 2074
Reviewed at http://reviews.reviewboard.org/r/2804/
Fixed "Posted" date appears in the dashboard, but not in the review.

This change adds the creation date to the content of the page (in addition to
the dashboard). This also fixes the internationalization of this text.

Fixes bug 1252.
Reviewed at http://reviews.reviewboard.org/r/2800/
Fix DefaultReviewer.objects.for_repository for non-repo LocalSite reviewers.

DefaultReviewer objects worked properly with regards to LocalSite rooting when
they had a repository associated, but not when they were global. This change
adds an additional parameter to for_repository which will make sure that only
LocalSite-specific default reviewers will be matched. This also includes a unit
test for the same.

Fixes bug 2367.
Added a "To Me" column to the pages with lists of Reviews.

Added a "To Me" column to the pages with lists of Reviews, and the requests that
target a logged-in user will be indicated with a &raquo; Tested on local dev
environment on Linux using Chromium 16.0.912.75.

Fixes bug 495.
Reviewed at http://reviews.reviewboard.org/r/2802/
Set default timezone to UTC.

Some systems, such as FreeBSD, don't have "US/Pacific" in their time zone list.
Especially since we'll be committing user-configurable time zones soon, we want
the system default to be UTC.

Fixes bug 2185.
Based on a submission by Xiaodong Xu at http://reviews.reviewboard.org/r/2760/
Avoid crashing if an scmtool returns bogus text during validation.

When an scmtool returns text with an unexpected encoding as an exception (such
as if pysvn can't load the DLL because something is broken, and the system
locale is Big-5), we would spew a traceback. This catches text encoding errors
and forces it to "replace" instead, which means that users will see a bunch of
boxes with question marks in them, but at least it's better than a traceback,
and (in this particular case) includes the text "DLL load failed".

Tested by manually raising an exception with the bogus text and verifying the
displayed error in the UI.

Fixes bug 1921.
Fix "manage" links in new admin to use SITE_ROOT

In the new admin implementation, the links for managing users, review groups,
default reviewers and repositories were absolute to /admin/..., which broke if
the site was deployed with a SITE_ROOT. This relatively trivial change adds
SITE_ROOT to the template so that URLs will be correct.

Fixes bug 2404.
Fix documentation for git path.

This change updates the help text for the repository path to clarify that we
should point to the .git directory for local git repos, and the clone path for
remote.

Fixes bug 2448
Update LDAP user mask hint.

This adds another example to the LDAP user mask to tell people how to configure
LDAP against AD.

Fixes bug 2447.
Add validation for the cache backend setting.

If users type the wrong thing into the cache backend setting in the admin site,
it can save to the database, which will then cause any request to the site to
generate a traceback. This is particularly annoying because settings are stored
as a big JSON blob, so it's not even easy to fix.

This change adds validation using django's parse_backend_uri--if the form can
parse it, we know that this won't cause problems later on.

Fixes bug 2347.
Fix UnicodeEncodeErrors when viewing the user infobox for users with unicode names

When a user had unicode in their full name or email address, the infobox view
would crash with a UnicodeEncodeError, because etags can only contain ascii.
This fixes it to explicitly encode everything to ascii, replacing characters if
needed.

Fixes bug 2309
Reviewed at http://reviews.reviewboard.org/r/2813/
Fix pyflakes warnings.

Forgot to actually commit this to git before pushing--don't store a result in a
variable without using it.
Added Collapse All button

Added permanent Collapse All button instead of a dynamic toggle.

Fixes bug 2461
Reviewed at http://reviews.reviewboard.org/r/2808/diff/
Include review ID in subject line of generated emails.

Some people use review request numbers frequently, and want to see them in the
emails as well. Tested locally on Ubuntu 11.10 in Firefox 9.0.1 using an
external IMAP/POP3 mail server.

Fixes bug 2271
Reviewed at http://reviews.reviewboard.org/r/2823/
Remove extra CC headers in SpiffyEmailMessage.

Supporting Django pre-1.3 was causing multiple CC headers to appear on
emails sent out with Django 1.3.1 and RB 1.6.1. Django 1.3.1 is required
for RB 1.6.1 now anyway, so there should be no problems with this.

Reviewed at http://reviews.reviewboard.org/r/2694/
Fix unit tests.

The change to add the review request ID to reviewboard e-mail subjects broke
several unit tests that asserted on the contents of the subject. Trivial fixes.
Fix the "Review ID" column to show the correct ID when using local sites.

This column wasn't showing the display ID, but rather the database pk. This
worked unless you had local sites, in which case the ID shown would be useless.

Fixes bug 2376.
Merge branch 'release-1.6.x'