Move generation of downloadable CSV to backend.
Download to Excel, rather than CSV (thanks @longhotsummer).