Fixed ScriptEditor to execute code in the right context.

Prior to this it was executing without a specific context, and getting the useless default one. It now uses the one set on the editor, which by default is ScriptNode.context() and is shared with all the other editors.
Merge pull request #899 from johnhaddon/scriptEditorContext

Fixed ScriptEditor to execute code in the right context.