Add tag-related functions.
Fix listLatestMessages() method in message model.
Add document to the models.