Added email confirmation and password reset.

Adds email confirmation for newly created accounts. Also adds the ability for users to reset their password after confirming the request via email.