Status control for students, progress on marking

This is another mixed checkin as the round out the feature set.

* Student status can now be set to "External" (privacy=1 in database)
  The student editing UI needs some attention, but it can wait.

* The rough framework for marking of paper tests is in place.
  It still needs display code and the transactional bits and
  pieces.