Made ThreadService maintain the messages model.
New features

- jQuery timeAgo support.
- Added a config option to set the time window within which consecutive
chat messages will be collapsed under.