Fixed script core not using its own isolate which means it can conflict with v8 running in cef
Changed gui delegate to use thread safe queue event instead of add pending event