Log rotation improvements

* Implement LZMA file compression and decompression
* Rotate logs on initialization
* ISO timestamps for rotated logs
* Hardlink most recent rotating log to original log filename
* Less blocking on log rotation
* Log compression in a separate thread