move time-consuming tasks into the background
Right now most of the time in sending email is spent in combining images into pdfs, despite there is absolutely no new information needed for that (except for the student number if a single student submitted >1 copy). We should also send emails in the background.
We should generate the pdfs in advance in background. This reduces the bottlenecks in one of the most sensitive parts of the workflow (sending mass emails).