Yii2 extension. Attaches events to all ActiveRecord and Controller instances.