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.
Merge pull request #122 from iNecas/save-root-action-before-plan

Save root action before planning starts