Store temporary download files in a temporary location, fixes #500

Use the system's **TempLocation** (**/tmp** in *nix, **%TEMP%** in Windows) to store the temporary files used when saving files.