Added support for parsing and serialising Pingreq and Pingresp packets