Updated thread handling.
Applied threading.Lock to some critical sections.
Implemented live log gzipping feature.
Implemented duplicate live detection feature.