Add a test case to check for proper env selection when passing `?env=foo`. Refs #8196.
Correctly trigger the issue reported on #8196.
We will start deprecating until Boron.
`saltenv` is now a known internal keyword.
Take into account `__env__` and `saltenv` being passed from state files.
The Salt environment deprecations will last until Salt Boron.
URL environment selection should also be using `saltenv`.
Fix the pip unit tests with regards to the latest `saltenv` changes.
Merge pull request #8311 from s0undt3ch/issues/8196-environments

Some more `saltenv` related changes/fixes