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 branch 'staging' into gh-993