Add dockerfile pod template and fix state transition bugs

Build this dynamically... job.Context KVPs map directly to environment.