changed scripting system a little. When loading the script blacklist all expected but not defined functions to improve performance. Also the phasor api is registered before reading the script file, so they don't override local functions.