introduce 'setup' method for setting up subprocess environment.

'setup', if defined by a unit of work, is called just before a unit of work
is executed for the first time… useful if you need to create an environment
for the subprocess to operate in.