content views - fix migration that maps repos to view versions

This is a fix for a broken migration. Without this migration,
rake db:migrate will fail on installations that have
existing environments/repositories.  The primary issue
observed by the user is an error indicating an attempt
to assign a version=view.
content views - migration - associate env with version

This commit will ensure that each kt_environment
is associated with the environment's default
content view version.  Doing this will trigger
the creation of the content view environment.
In addition, it will perform a save on each
repo in the environment to ensure that elastic
search indexes are updated to reflect the
change in environment.
content views - remove trailing whitespace on comment...
Merge pull request #1609 from bbuckingham/fork_content_view_migrations

content views - fix couple of issues with migrations