Added email confirmation and password reset.
This commit closes Issue #2.