Add a profile field controlling whether users want to receive email.

Not everyone wants to get emails from Review Board. This change adds a flag to
the profile to control whether users will get anything directly addressed to
them.

This is the release-1.7.x version of the change.

Testing done:
* Ran unit tests
* Tested database evolution.
* Tested the account settings.

Reviewed at https://reviews.reviewboard.org/r/5908/
Merge branch 'release-1.7.x' into release-2.0.x
Fix building API docs due to the Djblets object caching change.

Djblets's WebAPIResource now sets request._djblets_webapi_object_cache
when being called as a view. However, the webapi doc generation code
bypasses this, resulting in a breakage when building docs.

We now set this on our DummyRequest manually, in order to give the
Djblets functions something to work with.

Reviewed at https://reviews.reviewboard.org/r/5918/
Merge branch 'release-2.0.x'
Fix building web API docs with the latest changes on master.

This fixes up the initial_data fixture for the docs database for the new
"email_list_only" field on Group, and for the way in which
local_site_name was fetched in HostingServiceResource.

Reviewed at https://reviews.reviewboard.org/r/5919/
Fix a few minor web API lint failures.

This just fixes a few simple lint failures where unit test docstrings
didn't have the resource  class's name.

There are other lintian issues that have been around a long time, which
this does not address.

Reviewed at https://reviews.reviewboard.org/r/5920/
Add HostingService.get_remote_repository.

This allows fetching of an individual repository, with the given ID. The
IDs are specific to the HostingServices, and are provided when listing
repositories.

GitHub's remote repository IDs have been updated to provide both the
owner and repository name as the ID, instead of the numeric ID. This is
required in order to actually fetch repository information.

Reviewed at https://reviews.reviewboard.org/r/5913/
Check HTTP status codes in the GitHub service for errors.

Now that we have an `http_code` field in HostingServiceError, we can
check it instead of the error message text. This should help prevent
problems in the future if strings ever change.

Reviewed at https://reviews.reviewboard.org/r/5921/
Fix a padding issue in the administration UI.

The top of every content area in the administration UI had excess
padding, due to the addition of padding-bottom on the 'navbar-container'
element. Non-admin pages were updated for this, but the admin pages were
not. This just removes the content area's padding-top on these pages.

Reviewed at https://reviews.reviewboard.org/r/5922/
Add the reviews a user has posted to their user page.

The user page can now display either the user's posted review requests
(as before) or their posted reviews. These are accessible via tabs at
the top of the user page.

The reviews page shows the summary of the review request, the submitter,
and the date the review was posted.

Testing Done:

Created unit tests to test that the reviews page works, and reviews on
private review requests are not shown.

Reviewed at https://reviews.reviewboard.org/r/5484/
Changed Content-Disposition from inline to attachment for raw diff download.

When chrome is presented a file with Content-Disposition: inline, it shows the
file in the browser. This is fine for most things, but for the "Download Diff"
link, we'd prefer to offer to download the file.

Testing Done:
Manual testing with Chrome Version 35.0.1916.114, the affected browser. Also
tested Firefox 29.0. In Chrome, Download Diff now downloads instead of
displaying in the browser window. Added unit test.

Fixes bug 3384.

Reviewed at https://reviews.reviewboard.org/r/5893/
Merge branch 'release-2.0.x'