Script Editor Integration

The script editor now properly links with the main editor's project
tree, including modifications and undo/redo.