Testing some refactoring to cleanup the threads on X11 to try and keep things close to the same on POSIX and Windows.
Remerge a bunch of changes from a manual diff because git failed at commit or pushing the changes to upstream.  I am really sick and tired of all of this software
fail every time I sit down to do anything.  For each hour I spend wrighting software, I end up spending an additional 2 trying to fix the tools I need
to write software.

every hour I spend .
Added a few comments.
Refactoring darwin thread code for better shutdown handlers.
Merge pull request #6 from kwhat/hook_events_refactor

Merging the refracting done for cleanup into the trunk.