Added hooks for plugin activation and deactivation.