support http statuscode 302 redirect
support some mirror dist url like /package/download/package-version.tgz
Merge pull request #35 from guig/master

support some mirror dist url like /package/download/package-version.tgz and url redirect