Export results as CSV
Add functionality to export the result data as CSV data.
- Option 1: Return a string that is ready to write to a file (and let the client code figure out where to write it)
- Option 2: Take a file path and write it out
Related to #6 (closed), this will just add another way to format the data.