Better detection of successful IQ authentication (using packet caching), properly working SASL authentication (although only PLAIN so far).