Final touches on password reset. Closes #341.