implemented downloading with following redirects
Merge pull request #14 from hco/followRedirects

Added support for following redirects