Add student email to the results spreadsheet   #2582

Fixes for adding student email next to student name in CSV file generation
I'm still a bit worried about this method. Anonymity is set per question. But this method does not contain any pointer to a question.  @LowWeiLin, is the logic correct? Please review the logic of the rest of the patch too.