[entity] give a default reasonnable __eq__ and __hash__ to Entity
Using the eid.
Closes #3179560.
usr/lib/PY_VERSION/*-packages/cubicweb/devtools/
usr/lib/PY_VERSION/*-packages/cubicweb/skeleton/
usr/lib/PY_VERSION/*-packages/cubicweb/test
usr/lib/PY_VERSION/*-packages/cubicweb/entities/test
usr/lib/PY_VERSION/*-packages/cubicweb/ext/test
usr/lib/PY_VERSION/*-packages/cubicweb/server/test
usr/lib/PY_VERSION/*-packages/cubicweb/sobjects/test
usr/lib/PY_VERSION/*-packages/cubicweb/hooks/test
usr/lib/PY_VERSION/*-packages/cubicweb/web/test
usr/lib/PY_VERSION/*-packages/cubicweb/etwist/test