1894: Fix crediting where last sub is unsynced

* Often, the last subtitle won't be synced and will just extend until the end
  of the video.  In those cases, the "end" value is -1.  If that's the case, we
  can't add the credit sub.

* Made the add_credit() function dumber and easier to test (it now takes the
  list of subs, the language code and the video duration).  This makes it much
  easier to test.

* Rewrite tests (see above)
1890: Fix unittest logic
1980 Sync teamvideos linked to individual accounts
Merge branch 'production' into i-1890

Conflicts:
	apps/accountlinker/models.py
	apps/accountlinker/tests.py
1890: Fix check_authorization logic
1890: Fix unittests (yt imported versions)
1890: Fix more tests
2025: Sync to YT when marking lang complete in admin
Merge branch 'production' into i-1890
Merge branch 'production' into i-1890
Merge pre-DMR code into test branch.
2063: tern should use source order for translations
(cherry picked from commit 940039583148ef1cfe5f08915b553b09b30c7dd8)
Fix PALC migration.
1890: Sync to youtube when teamvideo is deleted
2093: Append credit instead of prepeding
2093: PEP8
2093: Add unittest
2102: Special-case IE9 TTS namespace.
Merge branch 'dev' of github.com:pculture/unisubs into dev
2109: right-align subtitles for RTL languages