* Added a setter for the CacheEntry.aboutToExpire callback and started integrating support for a logger.
* Less code for tests.