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