Implemented download retries. Fixes issue #39

Retry download on failure. Default 3 retry attempts, with 10 seconds between attempts.