Separate planning and execution phase of the action from ActiveRecord hook

When entering run/finalize phase, it's expected the transaction of
planning phase to be committed, which is to guaranted when starting
the execution from withing the transaction.
Merge pull request #10 from iNecas/split-hooked-actions

Separate planning and execution phase of the action from ActiveRecord hook