Fix: several bugs in all Thresholds for log pruning

Added method init() to Threshold interface to notify when a new pruning check begins

Add tests for FileSizeThreshold, FileCountThreshold, TransactionTimespanThreshold