Add repository statistics api.
Add specs for statistics api.
Add feature tests for statistics api.