Revert "Removed referential actions."

Reverts magnetfruit/entity#5

Wanted to merge in development branch.