refactor/simplify the use of tempfiles when downloading files in smr-map, also don't use tempfiles for local files, fixes #18