moved ArmZabbixAPI::mainThread() to the base class to be available from other sub classes.