Password recovery (Issue #57)

Simple password recovery functionality using e-mail.
Might require some logging - just let me know.

Also please review the JavaScript - I'm not very familiar with that language.