[frontend] [refactor] Move session and role access code to separate methods. Added url redirection on login back to initially requested page.
[api] Send email confirmation to user after deposit