https://github.com/nuvolabase/orientdb/issues/1225

Add class trigger : 
Create class OTriggered with 8 attributes, each attribute could be a link to OFunction. If any class extends from OTriggered, for any of those operations happens, corresponding function will be triggered. The current document and OScriptDocumentDatabaseWrapper will be binding to the script engine.  
- beforeCreate
- afterCreate
- beforeRead
- afterRead
- beforeUpdate
- afterUpdate
- beforeDelete
- afterDelete