attempt to pre-populate the course id field in the registration form, if possible.

 Fixes #131.