Adds Record#afterSave and #afterDelete hooks.