Fix for #2557, added missing run-scripts
Fixed some docblocks
Separated the scripts events in 2 arrays because they need to be called by different dispatchers.
Update code to latest EventDispatcher, refs #2722