Adding support for parsing and serialising Publish packets