Add another debug message.
Flush send buffer *after* protocol messages.

While this shouldn't be a problem, the protocol spec says that the server's
very first messages should be a new ticket and the PRNG seed.
Switch to 'ST_CONNECTED' after authentication.

There's no reason to wait until a new session ticket and the PRNG seed have
been sent.
Move duplicate code to new method.

The method 'sendTicketAndSeed()' sends a new session ticket and the PRNG seed
to the client.  Finally, it flushes the server's send buffer.  Using this
method, duplicate code can be removed.