Improved SASL/GSSAPI handshake

It turns out that in my original version of the SASL/GSSAPI implementation, plain GSSAPI didn't work properly. It actually never acknowledged the handshake. This patch fixes this problem.