added a check for the http return code + download progress report

* Check the http return code before starting a download, urllib.retrieve does not do this by default
* show a download report ' X kb downloaded of XXX total kb (XX% complete) xxx kbps'
yes, this hook only gets called before/after a full block.