Content Views: Worked more on publishing content

Fixed places where repos had no environments. Also, changed the task type to
publish instead of refresh. Lastly, fixed publish for versions 2+ and
generating metadata for version repos so the env clones aren't empty.