Refactoring ScriptHost & ScriptEditor

ScriptHost is now not using the singleton pattern, and ScriptEditor has
been added to a separate class library.