Move command context objects to command_context.py and fix the context for JobRun and ActionRun.