Fixed 'refresh-published-cv' fn
consume errata using ak that has CV definition
Fix systems that were trying to register to an env without a CV

* now register to library
* Add some functions to help create library records for a given org or env
Fix org html tests
Merge pull request #860 from sghai/refresh-view

Fixed 'refresh-published-cv' fn
Fix distributor tests to use Library env
Fix system details tests