Having the ejabberd authentication script connect to the userappserver

We were previously assuming that the UserAppServer was at the login address, which isn't true in advanced deployments.