improvements to quiz mode

Lock out students from viewing other problems when a quiz
is in progress.

Purge problem/quiz from client-side session when leaving
development page, to prevent attempts to access quiz
after quiz has ended.

Also, some improvements to adding new users.