InstData Import: pull out retrieve file methods into separate modules

`_retrieve_path` here has many commonalities with the local copy version.  I wonder if some of the logic could be deduplicated a bit.  Using the `file_size` helper the before and after size comparison is identical (although it would cause an extra HTTP HEAD query to be issued).