Handle PING a bit cleaner.

It must be handled immediately while the queue may be large, and the
connect method currently does not run through the normal input handling.
So, shove it into a method and call that! :)