Add support for group and controller ordinals

Just the code to get the stuff from the discovery packets.
Also added a new byteutils thing to read signed ints.