Override equals of Model

They are true if both have the same not null id.
Otherwise, fallback to default equals
Merge pull request #7 from astashov/master

Override equals of Model