Legacy promotion removal: Removing environment_product model

Removing environment_product model since products are no longer being
promoted. Instead, now repos join environments and products directly.
Product: Fixing intermittent test failure

Fixing problem caused by shallow copy of SIMPLE_PRODUCT. It was altering the
value of SIMPLE_PRODUCT.
API tests: Fixing intermittent test failure
Merge pull request #2546 from daviddavis/delete-environment-product

Removing environment product
Migration script for promotion code

This commit implements the following Migration
1)  Create a "Default CVD"  which has all the content  in the library
2) Publish a "Previous Environments View"
3) For each Non Library env -> change the env's default CVV to point to
the "Previous Environments View"
4) Update every system whose cv is null and make em point to "Previous
Environments"
5) Update every Activation Key whose cv is null and point em to
"Previous Environments View"
6) Change the  Org default view's CVE  to point to Default Publish View
(Org default view's will not point to a CVE after this)
7) Update repo create and clone methods to get the default env path
from CVE as  opposed calculating based on env default view or not ....
8) Auto publish on for Library default views
9) Generate metadata for library views