Implements discovering device, connecting to a device, requesting peerlist, requesting group owner.