Refactoring RemoteRequest and BulkDownloader.
Finished ports of Bulkdownloader and RemoteRequest.