Remove deleted entities from global instance cache

This is a fix for issue #3

When an entity is deleted from the database, it is also deleted from the global instance cache. This means that a new attempt to create an entity with the same primary key will succeed and return a different instance. Dangling pointer to the old instance will continue to be unable to save with that instance.