UI: add config based session-autologin helper

If autologin username/pass is specified in js config it
will be used to autologin user on page load.