MDL-40913 core_message: replaced 'write' add_to_log call with an event
MDL-40913 core_message: removed 'view' add_to_log call
MDL-40913 core_message: created 'message_read' event