Began more refactoring of scripting base classes.