Added repositories.go and repositories_test.go.