Instead of having models know how to make themselves into
csv make a module that can do it. This seems to me to
promote better view/model separation. The CsvGenerator
combines the list of objects, spec for fields to include and headers,
and csv options and produces the csv output.
Fix html that was preventing datatables from sorting on a column.
Add sort attribute (and comment for future sort attribute).