Created by: sgrechanik-h
This PR fixes the simple_download
function. The problem was that downloads were unsafe to interrupt, because it this cases the partially downloaded file was considered to be fully downloaded. This PR should fix this by downloading into a *.part
file first and trying to restart the download if such a file exists.