Implemented password recovery.

Closes #28