Module IDs of deleted modules may now be resued.

Users of the module manager API should know when an ID is valid or not, just as with other references.
Add constant for predefined event library name.