Add CSV download link to UI, backfill more tests, add d3 table in UI

Finishes 2098