Work toward scripts editor, various bug fixes.