Use raw ID fields for the LocalSite fields in the admin UI.

The LocalSite fields may become very large up on certain large-scale
deployments. This changes them to be raw ID fields instead of a drop-down of
options, which will speed up browsing the admin UI.
Fix screenshot thumbnails.

The CSS classes for screenshot thumbnails had changed, but the template
and JavaScript were still using the old names. I didn't catch this due
to generated media being cached here. They've now been changed.
Prevent useless comment fetching for screenshots and file attachments.

Screenshots and file attachments without comments weren't having their
_comments variable set, which was causing us to do a fetch later on
for each screenshot and file attachment. We now make sure to always
set _comments in review_detail, preventing these extra, useless fetches.
Add mutation APIs for review groups and their users.

This adds APIs for creating, updating, and destroying review groups, and
for managing the user list on groups.

The /groups/ API responds to HTTP POST and DELETE. /groups/<name>/
responds to PUT for updating all fields.

The /groups/<name>/users/ resource responds to HTTP POST and accepts a
username to add to the group. /groups/<name>/users/<username>/ accepts a
HTTP DELETE to remove from the group.

Unit tests were added to ensure that all responses are as expected for
various conditions, and that they work properly with LocalSites.

This was originally based on work done by Stephen Holsappie and Paul Hobb.
Merge branch 'release-1.6.x'
Update the docs database for the latest schema changes.
Update our README to be a bit more up-to-date.
Merge branch 'release-1.6.x'
Fix the quick search to use rbautocomplete instead of autocomplete.

The quick search field was using jQuery-UI's autocomplete instead of
our rbautocomplete, which was incompatible. This is the last remaining
big JavaScript issue I'm aware of with the jQuery/jQuery-UI upgrade.
Merge branch 'master' into slchen-thumbnails
Fix borders on dashboard

With my shiny (oh so shiny) new high resolution screen, the top right and bottom
right corners on the dashboard looked pretty gross. The problem here was that
while the outer container had a border radius, the inner container didn't, so it
overlapped in an ugly fashion.
Fix border radius on account navigation menu.

This fixes a minor styling issue where all items in the account navigation have
rounded borders (on the bottom left and bottom right) in the hover state, when
only the last item needs this styling applied.

Verified on Chrome, Safari, Firefox (all latest). Did not test in IE (no access
to Windows at the moment). :last-child isn't supported for IE < 9, but neither
is border-radius, so it shouldn't affect older versions of IE.

Reviewed at http://reviews.reviewboard.org/r/3489/
Skip tests that would fail if mercurial or p4python aren't installed.

When the hostingsvcs tests got added, they weren't added with sufficient checks
to avoid a bunch of failures if the underlying packages weren't installed. After
this change there are still a bunch of failures if pysvn isn't present, but
that's another bag of fish.
Add installation instructions for post-review.

This adds much-needed installation instructions for post-review on
Windows and Linux. It covers some tricky parts, like requiring the
32-bit installer on Windows, and being clear about 2.x vs. 3.x.
Merge branch 'release-1.6.x'
Remove useless, broken supports_change_timezone conditionals.

I guess when we initially did the timezone support, we thought it might be
connected to the auth backend. The result of this was code that would hide the
field on the preferences dialog for all auth backends except the standard
builtin one, and then fail to save when users tried to change their preferences
because the field was still marked as required.

Because the timezone setting is just part of the user profile and unrelated to
the auth backend, there's no reason to have these conditionals present.

Fixes bug 2797.
Reviewed at http://reviews.reviewboard.org/r/3491/
Fixed file att. cropping for thumbnails

- Fixed file attachment cropping for thumbnails
- Previously: read entire file attachment, then slice the first 200
  lines into a string to be parsed by docutil or markdown. This opens a
  potential vulnerability when reading files with large column counts.
- Now: read up to the first `max_chars` characters from the file.
  `max_chars` is currently set to 2000.
- Expanded supported mimetypes for rst / md handlers to include
  'text/rst` and 'text/markdown` for forward compatibility in the
  event they become official mimetypes in the future.
Merge branch 'master' into slchen-thumbnails