Fix: several bugs in all Thresholds for log pruning after the refactor which has separated
 log pruning strategy and thresholds

Added method init() to Threshold interface to notify when a new pruning check begins

Add tests for FileSizeThreshold, FileCountThreshold, TransactionTimespanThreshold
Add Transaction.terminate() to the Transaction API

This allows the user to terminate a transaction, which is a more
forceful mode of failure that not only marks the transaction as failed
(i.e. such that it will be rolled back) but also causes any subsequent
kernel operations contained within that transaction to throw
an exception.

This functionality will be used as a user-facing query termination
facility.

Signed-off-by: Stefan Plantikow <stefan.plantikow@neotechnology.com>
Add support for interrupting transactions in the shell with Ctrl+C

Signed-off-by: Stefan Plantikow <stefan.plantikow@neotechnology.com>
Adding tutorial for interrupting transactions to advanced section of manual

Use FileUtils.deleteRecursively() instead of copy-and-pasting similar code in all tutorials

Signed-off-by: Andres Taylor <andres.taylor@neotechnology.com>
Address review comments
Fixed copy/paste bug in PCL
Better assert message in PTC
Merge pull request #2654 from jakub-/transaction-terminate

Add Transaction.terminate() to the Transaction API
Makes server ITs use TargetDirectory instead of temp
Merge pull request #2658 from davidegrohmann/fix-log-pruning-bugs

Fix: several bugs in all Thresholds for log pruning
Better generated configuration docs.