Fixed some stupid stuff.
Added password recovery functionality, based on PHP mail() function.