- Changed the Mutexen into Syncs to support shared locks
- Changed the Mutexen into Syncs to support shared locks

- Made the listener socket private to the listener thread to avoid locking
  issues when reloading, and serialized listener thread creation.

- Fully-qualified type checks

- Hacked up login code to support new LoginSession object

- Made modifications necessary to allow event queue to process critical events
  before shutdown.

- Moved the registerHandlerForEvents method into the MUES namespace as a
  function global to the MUES::Object class.

- Rewrote the ReloadEvent handler to deal with the change to listener
  socket/thread.

- Cleaned up event handling so resultant events are dispatched in the result
  cycle and not immediately.

--HG--
extra : convert_revision : svn%3A39a105f4-52d6-0310-bb1b-d6517044f2e4/trunk%4057

ged/mues