Removed the entity ID stuff.

Removed entity IDs and anything related.
Anywhere where getID was used for comparison, the code has been changed to compare based on the entity objects themselves.