Add reset password functionality. Fixes #9 and #14.