Changed download mechanism to use a Blob

Previous mechanism was ignoring filename, returning 'download' with no
.csv extension (though data was OK). I changed the structure to use a
blob instead and link to that blob.