Add exportQueryResultsToCSV function

Add function that takes the viewModel object and exports its contents to a CSV downloaded in a new window. Done via standard JS for now