Key Leaks/Debug Logging

Replace the plasmalog.txt with a new plStatusLog controlled plasmadbg.log. This log has both CoreLib status/debug procs redirected to it. You can now see the debug outpput in game, in the debugger, and in the log file. This also includes fixes for the old key leak detection code and ensures that it gets flushed to the plasmadbg log. This should help us investigate what's happening in the python leaks @zrax was seeing.

Also, as a bonus, I have included a fix for our old "crash on exit" issue.