Adding notification support to the LRU cache class.

Cached objects can now be notified when they are added to and removed
from the cache, making it easier for them to manage their internal
resource better.