adds an "invitationCode" config string to control registration

if the config specifies an `invitationCode` the registration page
is extended with an additional text field that expects this code
from registering users. (refs #814)