Add support for CSV on table pages

Also fix the paginated csv, closes #15