BRANCH 4.2-DEV: messages must be enabled for a search type in order for
events such as updates and inserts are recorded.  Messages from sobjects
now also obey triggers flag
BRANCH 4.2-DEV: some minor rearrangement of message logic