Improvements on Content Management.

Messages are filtered using thread_id instead of loading the whole
message list.
Messages are loaded in reverse order so that they are shown correctly
in the conversation list.
Formatted all classess.