Adding email sending to password reset process

Resolves #361.