Improve Ajax Kerberos auth
This MR improves krbByJs to be compatible with 2FA, notifications, etc (see #2792 (closed)), it is based on !300 (merged) , merge this after !300 (merged) is merged.
These changes require no config modification and users will immediately get the new behavior