[DF-4577] Finished unit tests. Correct handling file write error for CURL. Correct timeout for download and get_size (get size is a part of full download and takes same timeout, so we need to use half value for each operation at full download). Fixed download interruption (seems was a merge mistake).