accounts: lost and reset password code migration
- Rewrites legacy code for lost password and reset password pages. (addresses #3272) (addresses #1761)
- Adds Jinja templates for reset password page and email.
Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>