added functionality to require authentication in order to write exam

- if toggled in exam settings, a file with keys for each student is
generated and downloaded when the instructor releases the exam

- currently has no effect on student