imagefactory: Print working directory for logs

So I can find them...
Clean up ImageFactory code, move IF-specific bits from TaskBase

The ImageFactory code had some leftover generic bits from when this
code was one big script.  Kill those.