ActionComplete / ActionFailed called after Action completion

Addressed remarks in PR #617:
 - Action-related HookContext types bundled into a single type.
 - Comment added to State handle in HookContext.
 - actionData constructor called from outside the HookContext, in the
   case of Actions only.