Content Views: Supporting content view repositories in api

Also, added a fix for repo creation.
Merge pull request #3624 from daviddavis/temp/20140127115014

Content Views: Supporting content view repositories in api