Add release_download function to naily

tested by hands. Do not accept this PR before Monday.