V2 feature/csv refactor

Creates abstract function for returning streaming csv files
Moves spreadsheet specific code to it's own file.