ISPN-2792 Allow logging at TRACE level for a single test in the test suite

Add a log4j filter that allows TRACE messages only if the thread name
matches a regular expression.

Also add a shutdown hook to CompressedFileAppender to make it more likely
that the log file is properly terminated.
ISPN-2790 ReplCommandForwardingTest fails most of the time in CI

Looks like joining the cluster can take more than 3 seconds in CI, so I
increased the timeouts to 15 seconds.