Prevent duplicate tempfiles when streaming download

Per RAZOR-73: When downloading a file for a repo, the code would create two temporary files: one from open-uri and one the code created explicitly. This now moves open-uri's tempfile in an attempt to avoid creating a duplicate.