Added thread-safe queue class and started work on the log manager.