Added EntityEquality to support easily overriding object equality for normal classes

@gakuzzzz 

Would you review this change?