[subtitles] refactor to support websites with subtitle information the
webpage.

I added the parameter webpage, so now it's similar to the way automatic
captions are handled. This is an improvement needed for websites like
TED.
[ted] Added support for subtitle download
Merge branch 'ted_subtitles'
Merge remote-tracking branch 'iemejia/master'