Refactor out transformation

and add print mode. Its almost a name clash to the print option.
Print mode lets you inspect the buildset that is sent to each node
Fix so that all variables are correctly expanded on each node
Remove reference on string

The string is sometimes deleted before the destructor of PhaseReporter
is called