Support for finalize steps in planning and execution

While working on this I've removed run_step_id and finalize_step_id
because they were not set before the steps execution, were not used
anywhere and caused useless difference between run and finalize phase,
that complicated the unification.