Some improvements on HttpDownloadManager