WIP: Combined Login/Registration: Set up basic enrollment infrastructure.

Should only need to declare var one (see the original lines 42 and 43 for the pattern)