Read-only repository implementation

Fixes https://www.pivotaltracker.com/story/show/77109350