Add Config::pauseEvents and Config::resumeEvents

Use these when activating and deactivating packages