core: Moved handle ping packets to ping.c
Merge pull request #361 from plutooo/master

core: Moved handle ping packets to ping.c