ClientScripting fixes

This fixes problems with safe scripts being set _after_ the script is evaluated (so code that isn't in clientStartUp which requests file access won't work).

```javascript
sys.getFileContent("error"); // -> undefined/error/warning (quite random), fixed
({
  clientStartUp: function () {
    sys.getFileContent("works"); // this always worked
  }
})
```