added beforeSave callbacks to Model
Merge remote-tracking branch 'origin/master'