Split getCSV into two methods, getDataRows and getCSV

This allows a hook for getting the raw data rows for use in for
instance a HTML table.