Port bug 939044 to comm-central, rs=bustage-fix

This involves deleting unused MODULE declarations and renaming others to
XPIDL_MODULE. Also, pushing to SeaMonkey's CLOSED TREE.