Add a base collection for resources.

Review Request #4221 — Created June 8, 2013 and submitted — Latest diff uploaded

Information

Review Board
master

Reviewers

Add a base collection for resources.

BaseResourceCollection ties into our resource pagination mechanisms to
allow paging through collections of models.

The caller can do an initial fetch() to get the first page, and then
call fetchNext()/fetchPrev() to get subsequent pages.

Or, the caller can call fetchAll() to get every instance from the
server.
Unit test pass.

Tested with my review dialog change.