Save root action before planning starts

We need this to be able to get the data about the action that triggered the
execution plan before the planning is finished.
done