Reset state when connection opened

We do not reset state when the client opens the connection. What this
means is that if the client is reused in a new connection it won't
deliver the greeting if a previous connection already delivered it.
Reset state once the new connection has been initialized.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>