Get language direction information for transcript
Get proper commit number for language direction in API
Also make overlayed subtitles the correct language direction
Merge pull request #1617 from pculture/gh-1612

Gh 1612
bump commit for media
Ensure patch_reverse() is called when we are using WSGI

Before the code was in the wrong file.  Moved it to
deploy/unisubs.wsgi and removed the wsgi.py file, which we weren't
using.
Support forcing HTTPS for oauth redirect URLs

Using HTTPS improves security since it prevents an attacker from
seeing the request, which includes the oauth access token.

On development, we care less about this and it's simpler just to use
http, so I made it a setting.
Use http for oauth callbacks when in the dev environment
Don't crash when we get an API error while adding a youtube video
Merge pull request #1624 from pculture/gh-1623

Don't crash when we get an API error while adding a youtube video
Don't redirect users for the youtube callback

Before this change we would have an extra redirect when adding a
youtube account because of localeurl.  The browser would navigate
these pages:

  1) /en/profiles/account/
  2) https://accounts.google.com/o/oauth2/auth
  3) /externalsites/youtube-callback
  4) /en/externalsites/youtube-callback
  5) /en/profiles/account/

Since the youtube callback doesn't need to be localized, we can skip
step 4.  The change to LOCALE_INDEPENDENT_PATHS accomplishes this.
Also we can remove the old entry there for the accountlinker path.
Merge pull request #1625 from pculture/youtube-callback-tweak

Don't redirect users for the youtube callback
Merge remote-tracking branch 'origin/staging' into newmedia
Start xvfb from our python tests

This eliminates the need to use xvfb-wrapper when running the tests.
Fixes for a bunch of included media files

With the new media changes, we can only include media bundles, not
just link to anything in the media/js and media/css directory.  Fixed
a bunch of links using the old method.  Added media bundles for:

  - ajax paginator (used on the videos/search pages).
  - prepopulate.js (used on the team create page).
  - ie8.css (for IE 8 and lower).

Removed some things that used the old linkage method that we don't use
anymore:
  - volunteer page.
  - JS/CSS in the statistic page.
  - Widget JS in the FAQ and About pages.
  - jquery.metadata.js in the messages pages (We include that file in
    site.js anyway).

The one remaining place is the widget directory, but I don't really
understand what's going on there.  I want to just leave that alone
until we ditch the old embedder and editor and then say goodbye to the
widget altogether.

It would be nice to have the original non-minified sources for some of
these JS files like prepopulate.js, but I have no clue where they came
from.