Add method to mark message as read to REST API

Merged Nico requested to merge 1780-mark-as-read into master

When exposing unread messages counters in !1283 (merged), I noticed that they were never set to 0.

Fixes #1780 (closed)

Edited by Nico

Merge request reports