function hasEntry(object) {
        for (var name in object)
            return true;
        return false;
    }
Resets the interface such that the login UI is displayed if
the user is not authenticated (or authentication fails) and
the connection list UI (or the client for the only available
connection, if there is only one) is displayed if the user is
authenticated.