Creating discoveryManager class to manage Wifi P2P-based discovery actions.