Remember last domain used to login. Closes #4116.
Merge remote-tracking branch 'ivan-github/bug/4116_remember-last-login-domain' into develop