Moved scripting functions from Application.cpp to ScriptingManager.cpp