Move common mailmerge logic to common base view
Add CSV export for judge submissions