Fixed bug where the message to notify other components of a mod being
loaded was not being sent.
Added automatic logging of uncaught exceptions.
Changed weapon loading to use the name of the XML file as the ID of the
weapon rather than the UID defined in the file which is apparently not
used.