Refactored Dolibarr triggers:
Created a DolibarrTriggers abstract class.
Moved common variables out of construct class
Improved run_trigger method signature
Removed useless code
Fixed trigger not returning anything under some circumstances
Converted some global variables to local ones in InterfaceLogevents
Fixed little bug
Added missing $error and $errors variables
Refactored InterfaceNotification class
Corrected test
Refactor InterfaceActionsAuto
Corrected CS errors
Accidentally removed Demo trigger content
Merge pull request #1753 from marcosgdf/triggers-refactor

Refactored Dolibarr triggers