Add events firing in transaction.

Signed-off-by: Kevin Simard <kesimard@outlook.com>
Merge branch '4.1' of https://github.com/kesimard/framework into kesimard-4.1
cleaning up some code.