Fix login manager

There is no longer a login widget in the login manager
Fix LinkUtil::getHostName()

Now checks for configured domain instead of name and respects linking/prefer_configured_domain setting