Created entity identity trait

Since `IdentifiedEntity` is deprecated from good reasons there still could be simple way to define entity with identity. This trait should solve it for projects running on PHP 5.4 or higher.