Speed up Team.videos_count

This way removes the join to the videos table and simply counts from
the team videos table.
Removed GROUP BY in the teams_project template tag.

We were doing a fairly expensive group by, but not even using the
results of it.

Also removed a couple templates that we don't use anymore.
Don't save SubtitleLanguage twice when regaining the lock

writelock() calls save(), so we don't also have to call again in in
regain_lock()
Merge pull request #793 from pculture/speedup-writelock

Don't save SubtitleLanguage twice when regaining the lock
Include empty metadata in the editor fields (#787)

This fixes both the old and new editors
Merge pull request #795 from pculture/gh-787

Include empty metadata in the editor fields (#787)
Merge pull request #775 from pculture/dbtuning4

Dbtuning4
updated docker setup
minor test tweaks
Fix metadata with content="" (#797)

This changes it so that if the content isn't set, the metadata will be
visible in the editor, and the API, but not on the page.
Merge pull request #798 from pculture/gh-797

Fix metadata with content="" (#797)
Updating integration repo
Updating integration repo
Cleaned up billing tests a bit.

Removed imports in the middle of test cases

Removed statement to delete all billing reports.  There aren't any in
the DB for the tests, so it was just a no-op.
Handle non-ascii usernames when generating reports
Merge pull request #809 from pculture/billingfixes

Billingfixes
Add language number back to the billing records

Moved code to generate the data for the CSV file to its own class.
It's starting to get a little complicated now.

Started new test class that uses factory functions instead of
fixtures.
Merge pull request #810 from pculture/billingcounts

Add language number back to the billing records
update billing tests for language number inclusion
Merge remote-tracking branch 'origin/staging' into speedup-tasks

Conflicts:
	templates/teams/_context_project.html