Move the reader from the worker library to jobutil.

So that it can be used by both the worker and the jobpack libraries.
Print the output.

This only works in very limited cases where DISCO_HOME is set.  For the other
cases, and for the remote input we have to find a better approach.