Extract environment list code into the common module to allow reuse

Was curious more than anything about what it would take to extract this code and create a `conda envs` command in place of `conda info -e`.  This maintains the old behavior, but adds a new `envs` sub-command.
This shouldn't be run if output=False.