Refactor TPIE logging, getting rid of the log singleton.
Add tpie::flush_logs.
remove_log_target: Flush logs before removing a log target.
Move some log implementation functions into tpie::log_bits.