add beforeDelete() to BEditaObjectBehavior
update to fit new cakephp/app structure