use actual temp files instead of StringIO for exports

am hoping this potentially reduces the memory overhead
Merge pull request #76 from dimagi/file-exports

use actual temp files instead of StringIO for exports