Add proxy support for video uri fetching. (youtube-dl seems to get proxy uri from env. variable.
Remove unused variable.
Wrap execution with with 'if __name__' guard.

This is a step to help with the modularization of the program.
Move code for token extraction to a function.

While we are at it, we also remove the request variable, as it was only set,
but not used further.
Merge pull request #9 from rbrito/refactoring/take-00

Refactoring
Added support for subtitle download
Fixed warning with the last version of youtube-dl (stitle). Added lead zeros to videos name and included course subdirectory in the destination path
Merge branch 'master' of github.com:shk3/edx-downloader
Merge pull request #10 from iemejia/master

Changes to support subtitle download
Merge branch 'master' of github.com:shk3/edx-downloader
Use 2to3 to make the revision in Merge pull request #9, #10 effective to its python 3 version.
Substitute repetitive download of URLs with a small function.
Use formatted strings to eliminate spurious spaces.

This may (potentially) simplify dual compatibility between python 2 and
python 3, especially when prints are involved.
Upgraded the script to be compatible with python versions superior to 2.6
Added .gitignore file
Fixed repeated filename in README
Merge pull request #13 from iemejia/master

Upgraded the script for python 2.6x or superior compatibility
Delete unused scripts.

They are getting in the way and they can be checked in the history, if we
ever need to refer back to them.