Add support for pusherflags, segments, power domains in discovery

This change also links the parsing of the discovery packet to the
software version number, making it potentially safer when used with old
firmware revisions, and fixes a bug introduced when variable length
stripflags arrays were implemented.