Add test for caching.
Delete from cache when deleting history entries.
[jan] Use Horde_Cache instead of Horde_HashTable for caching.