Ensuring that products/environments are unique

Ensuring that both Product#environments and KTEnvironment#products returns
unique items.
Merge pull request #2579 from daviddavis/temp/1372797408

Ensuring that product and environments are unique