Rego/confirmRego/login/logout/profile editing mostly working.

Registration emails are still not sent with the confirmation link.