buddycloud/webclient — pull request #14 by denisw (2012-09-27 11:22:33+00:00)
Title: Refactor post-related models to make views simpler

From the commit message:

```
The term "item" is introduced as meaning "either a post or a comment".
Consequently, ChannelPosts is now ChannelItems and Post is now Item.
"Post" now means "top-level item with comments".

Besides providing clearer wording, these changes enabled refactorings
that make working with posts in the views easier. They can use
ChannelItems.posts() to get all Items representing posts and can
retrieve their comments through each post's "comments" array. They
can listen for new (top-level) posts with the "addPost" event of
ChannelItems, or for comments on a particular post with Item's
"addComment" event.

All in all, these changes should make it *much* simpler to get the
views right, especially if we add real-time support in the near
future.
```