More unit tests and some code cleanup.

KSLogger was not handling kslog_setLogFilename properly in all cases.
Added some macros to make certain mapping code less prone to human error.
Disabled deadlock detection until I can find a more robust solution.
Merge branch 'master' of github.com:kstenerud/KSCrash