Clone from http://hg.pidgin.im/cpw/tomkiewicz/gg-dissector/ aka http://hg.pidgin.im/soc/2012/tomkiewicz/gg-dissector/