Worker wrapper package

This change defines the package that will be used by the worker wrapper
program. It implements the interface defines in the standalone interface
spec for the wrapper process.

It tests the library with a bunch of simple scripts that exercise each
of the components of the interface.

This relies on a couple mock changes in another PR which is why
the tests are failing.
Probably not, but it's worth saving 35 lines in this file (both these functions, and in other places) to avoid rewriting code that others have written while simultaneously making your code more readable.