Fix debug logging to avoid unneeded string manipulations when debug is turned off
Some cosmetic changes, plus support for evicting cache entries (will be used by an external object cache implementation)
Added support for global object caching (minimal debugging)
Rethink ObjectCache.ready() method to allow cache updates on OCM.insert() and OCM.update()