content views - fix couple of bugs affecting publish/refresh/promote/consume

This commit contains 2 small changes to address regressions affecting
the publish/refresh/promotion/consumption of content views.

1. one is to address an error notice due to an invalid SQL during the
   promotion of a content view

2. is to address that the content view environment is not getting
   properly created during the saving of the version which occurs during
   publish/refresh/promote of content views.  Looked at options
   such as adding :validate=>true to the belongs_to :content_view
   in content_view_version.rb; however, it still would not trigger
   the creation; therefore, put the logic back at using the
   ContentViewEnvironment.create which will ensure the CVE is
   created.
content views - fix a test and update a test

- this is to fix a test that expects creation of org
  to create a content view environment... today, we
  do not want/need to create a cve for a new org
  (e.g. as part of creating library).  the reason being
  the cve translates to creation of a candlepin env.
  since a consumer may not register to library, that
  env need not exist

- add a check on promotion to ensure that a cve
  is created for the view in the target env
Merge pull request #1806 from daviddavis/cv_system_tests

Content views: added system tests
Merge pull request #1811 from bbuckingham/fork-content_views_bugs

content views - fix couple of bugs affecting publish/refresh/promote/con...
918452 - Fixed an issue where cli repo info call was not working

With the advent of pulpv2 changes in katello we get the feed url from the DB now
instead of calling pulp and using ['source']['url']
Merge pull request #1813 from parthaa/918452

918452 - Fixed an issue where cli repo info call was not working