Ported Query code from InfectEngineV1 to IEV2. Upgraded reboot/shutdown/quit to use queries