Add team support for Bitbucket repositories.

The new Bitbucket hosting service rewrite, which brought along Git
support, only worked for personal acounts. It didn't support team
accounts.

Now, Bitbucket supports two types of plans: Personal, and Team.
This works much like the various plans for GitHub. Depending on the one
selected, we configure requests against the repositories differently.
For personal accounts, the repository owner name in the URL is the
username of the owner, For team accounts, it's the team name, which is
requeste during configuration.

This works with existing configurations. It's assumed that any Bitbucket
repository configuration without an explicit plan set is a personal
account.
Add a unit test for API get_list permissions checking (release-1.7.x)

This adds a unit test to verify that get_list checks permissions for parent
resources properly. The actual fix for this is in Djblets' WebAPIResource.

Testing done: Ran tests
Reviewed at https://reviews.reviewboard.org/r/4558/
Merge branch 'release-1.7.x'
Add team support for Bitbucket repositories.

The new Bitbucket hosting service rewrite, which brought along Git
support, only worked for personal acounts. It didn't support team
accounts.

Now, Bitbucket supports two types of plans: Personal, and Team.
This works much like the various plans for GitHub. Depending on the one
selected, we configure requests against the repositories differently.
For personal accounts, the repository owner name in the URL is the
username of the owner, For team accounts, it's the team name, which is
requeste during configuration.

This works with existing configurations. It's assumed that any Bitbucket
repository configuration without an explicit plan set is a personal
account.
Merge branch 'release-1.7.x'
Require the latest releases of Django 1.4.x and Djblets.
Don't show the static media collection output when running tests.

This output was useless to us, and just created noise and slowed down
the running of tests. Turn off verbosity for that step.
Release Review Board 1.7.14.
Merge branch 'release-1.7.x'
Raise an error when uploading a non-git diff to a git repository.

When uploading a non-git diff (whether an image file or anything else),
GitDiffParser would assume it's just an empty file. We now sanity check
this better by seeing if we parsed any files, and if not, if we're
dealing with a non-empty file. If no files were parsed and the file is
not just empty or whitespace, we assume it's some unknown file type.
Fix a couple regressions in the diff viewer.

This fixes two regressions, one new, and one that's been around since
the rewrite.

The new one blocks viewing unpublished diffs. The template code setting
up the diff-related models was assuming the existence of the
latest_diffset object, which didn't exist in this case. The result was
that no value was outputted, leading to invalid JavaScript, which
prevented any diffs from loading.

The second was a visual glitch that resulted in an extra ">" before the
expand links for headers. This was due to the ">" being after the wrong
endif tag.
Make PySVN optional for unit tests.

The unit tests no longer depend on PySVN. Some of the remaining tests
using Subversion repositories have been updated to use Git instead, and
the rest now use a new TestTool that is based off Git but has many
testable properties for things like branches, commits, basedir, etc.

You can now remove PySVN from your system and run the test suite. The
real Subversion-specific tests will just skip, and all main tests will
run.
Add the missing scmtools.py.

This was left out of my testing improvement change.