Big refactor to avoid leaving tempfiles accidentally
Big refactor to avoid leaving tempfiles accidentally

The new behaviour is to ensure that we only overwrite
the old files if the new ones were generated without
an exception being raised.

The new structure is more amenable to testing, too.

scraperwiki/spreadsheet-download-tool,scraperwiki/spreadsheet-download-tool