Added LoginType constants. Created general structure for processing registrations.
Split out password/captcha/email logic.
Updated webclient to support the new registration logic.
Make captcha work again with the new registration logic.