Fixed problem with local file URL
Changed the retrial policy: count the number of consecutive failures to
download.
Changed to an object oriented code, and checking whether the server supports partial downloads.