Content Views: Supporting content view repositories in api

Also, added a fix for repo creation.