Use LRU hash for logline cache to avoid memory leak

The LRU cache is controlled by two new configuration properties:
  "log.hash.size" - the number of hash buckets
  "log.hash.max"  - maximum number of cached loglines per hash bucket

Change-Id: I0ce7b1c95b321d2d7400b80e85cb36ef020c2681