Create signals when messages are created, updated and deleted.

Created signals message_pre_save, message_post_save, message_pre_delete,
message_post_save.