Merge pull request #2 from andwun/master

Fixed failing downloads when login is required
Clean login and progressbar code up