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.
Change django.conf.urls.defaults -> django.conf.urls

Django 1.4 changed the namespace for 'patterns' and 'url' from
django.conf.urls.defaults to django.conf.urls. This was listed in the
deprecation notes, but we never updated it because 1.4 maintained
compatibility. 1.5 got rid of the compatibility shim, so we need to actually
update now.

Testing done: Ran unit tests

Reviewed at https://reviews.reviewboard.org/r/4566/
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/
Add a unit test for API get_list permissions checking (master)

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/4559/
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'