Split ExecConfig into ExecConfig and ExecdConfig

Former is the information needed by worker subprocesses,
latter is the information needed only by parent process itself.
Get rid of magic numbers
Store code review comments for later use