various tweaks, especially with the logManager(s) and the eventManager. switched to c++11 mutex and threads. Removed the previous thread and lock files.