A Ruby downloader script with progress bar, retries, 301/2 following and MIME type-based format detection.