More refactoring - psscriptdata

Now all script core data structure changes and accesses should be made
through a PSScriptData object