[ADD] mail_message: added model_id field to provide search by application.

[IMP/FIX]mail: mail.js: hide 'Mark all read' button, when thread is having all the messages makred as read.