Takes an array of objects and creates a CSV file that can be saved to disk.