Add javascript models for Repository, Branch, and Commit.

This change adds models and collections for repositories, branches, and commits,
along with basic tests for the fetching and parsing logic. This implements the
client side of the new commits and branches resources.

Testing done:
Ran unit tests. Used these models in my larger post-commit changes.

Reviewed at http://reviews.reviewboard.org/r/4266/