Add script functions for Mac events
Add DKBehaviourScriptController, improved behaviors tab UI