Fixes various bugs.
Changes scope of generate_token method.
Fixes routes.
Changes generate_token so token is returned after generation.
Permits password to be modified.
Changes how password reset time is calculated.