Get rid of deprecated TestCase assertion methods.

TestCase has a bunch of methods which have been replaced with other names for
various reasons. We've fixed up most but not all of these. This change converts
all of these to use the new names.

Testing done: Ran unit tests

Reviewed at https://reviews.reviewboard.org/r/4581/
Make sure to always fix up the MEDIA_ROOT after admin tests.

If UpdateTests.testManualUpdatesRequiredBadUpload fails (say, due to something
being rendering the base.html template), it will leave settings.MEDIA_ROOT and
siteconfig's site_media_root in a broken state. This breaks a bunch of other
tests, which is highly confusing.

Testing done:
Ran into this case when working on my django1.5 branch, and this fixed it.

Reviewed at https://reviews.reviewboard.org/r/4584/
Switch function-based generic views to class-based ones.

The old object_list and redirect_to views are gone, in favor of ListView and
RedirectView. This change switches us over to them.

Testing done:
* Verified that views still worked.
* Ran unit tests.

Reviewed at https://reviews.reviewboard.org/r/4582/
Don't blindly call next_page_number() or previous_page_number().

The pagination methods have been changed to raise EmptyPageError if there's no
such page. We therefore can't blindly add things to the context, but rather
should check that the pages exist before we call these methods.

Testing done:
* Loaded a diff that spanned multiple pages.
* Ran unit tests

Reviewed at https://reviews.reviewboard.org/r/4588/
Fix up our manage.py for Django 1.3 deprecations.

The setup_environ() and execute_manager() methods were deprecated, in favor of
the new execute_from_command_line() and setting the DJANGO_SETTINGS_MODULE
variable. These were deprecated in Django 1.3 and removed in 1.5. We inherited
these by virtue of the fact that we modified the old manage.py--this updates
our code to look more like the new manage.py.

Testing done:
* Ran unit tests
* Used the devserver a bit

Reviewed at https://reviews.reviewboard.org/r/4589/
Remove generated static files from .gitignore.

Every time I build an egg, the next time I start making changes to javascript
or css, I wonder why my changes aren't having any effect. Ideally these files
should get generated into the build directory instead of the source, but for
now, just remove them from .gitignore so they'll show up in `git status`.
Include submitted review requests in the "Starred Reviews" page in the dashboard.

While users can star submitted reviews, they do not appear in the "Starred
Reviews" page of the dashboard. To fix this, I modified DashboardDataGrid to
include submitted reviews when it displays the starred reviews, by filtering
all public starred reviews. Also, we need to keep the counts for starred
reviews consistent, so in accounts.Profile, I included ReviewRequest.SUBMITTED
when we star or unstar a review request.

Testing done:
Manual testing: starred and unstarred a combination of submitted and
non-submitted reviews to see if they would be displayed properly on the
dashboard.

Reviewed at https://reviews.reviewboard.org/r/4578/
Fixes bug 1075.
Fix z-index on user account drop-down

Added a z-index property to lists in accountnav to have the contents of the
account dropdowns not be concealed by the changelist-filter in admin dashboard
while managing users.

Testing done:
Went to admin dashboard --> manage users, and then hovered over user account
tab in the top navigation bar and ensured that part of it was no longer hidden
by the table in the main content.

(Ran unit tests anyway and they all passed, though I'm assuming changing css
wouldn't affect any of those)

Reviewed at https://reviews.reviewboard.org/r/4597/
Fixes bug 3088
Move listenTo from .render() to .initialize()

My earlier implementation of a couple of the views on the diff page would
attach to the 'change' signal every time the view was rendered, and so
accumulate a bunch of excess connections. Instead, make this connection once
during initialize(). Trivial change.

Testing done: Smoke tested the diff viewer.
Replace User.get_profile() with dedicated model look-ups.

The user profile module is officially deprecated, and User.get_profile() is
going away in Django 1.7. Just because it's deprecated doesn't make our Profile
model obsolete, it just means we need to do the queries manually.

There's nothing in Review Board itself that causes problems here. In fact,
while I was in here I found some cases where we were using User.get_profile()
where we really wanted Profile.objects.get_or_create(), to ensure that the
profile object existed.

Testing done:
* Ran unit tests
* Smoke tested the UI

Fixes bug 3083.
Reviewed at https://reviews.reviewboard.org/r/4590/
Address ALLOWED_HOSTS changes.

In Django 1.5, it's required to set ALLOWED_HOSTS in the settings. Previously,
this had defaulted to ['*'], which performed no host validation (and
potentially allowed host poisoning attacks).

I've added a default of ['*'] to settings.py, which is expected to be
overridden by settings_local.py. For new installations, rb-site will set this
to the domain name entered during installation. There's not a fantastic way to
deal with this for upgrades. rb-site upgrade can modify settings_local.py, but
it doesn't have the domain name.

I think what we'll do is mostly documentation, with a three-fold approach:
* Include instructions in the release notes.
* Create a "security practices" document in the admin manual, bringing together
  content from various existing documents/faqs/etc, and include ALLOWED_HOSTS
  in this as well.
* Build a page in the admin site that can do automated security checks and make
  recommendations to the user.

Testing done:
* Ran with DEBUG=False against Django 1.5.4 and verified that the default
  setting worked correctly.
* Built an egg and installed it into a virtualenv. Created a site with rb-site
  and checked that settings_local.py contained a correct ALLOWED_HOSTS.

Reviewed at https://reviews.reviewboard.org/r/4600/
Change django.utils.simplejson to json.

Django 1.5 deprecates the use of the bundled simplejson, because Python 2.6's
json module includes everything that's needed.

Testing done: Ran unit tests
Reviewed at https://reviews.reviewboard.org/r/4601/
Remove Inline Review click event from File Attachment Review button.

The event is a placeholder which is preventing the Review button
from opening its hyperlink when clicked.

Reviewed at https://reviews.reviewboard.org/r/4610/