Added forgot password feature.

Added an endpoint for reseting a user password and sending an email
with that password. Meant to serve as a forgotten password feature.
Fixes issue #2.