add some logging to download url recursion #664
belt+suspenders for #664
set file_downloaded flag on successful redirect, logging for all responses
fix logic for setting downloaded flag