Moved PING handling into protocol module.

This means that Arata's core code does not depend at all on the IRC
protocol any more.