Add support for setting scripts, rather than having a hard-coded script.

Move the test script into a resource file.
Add APIs for reading a script from a resource, InputStream, string, or
byte array.
4 files changed