Added support for setting environmental variables when running cabal install

Environmental variables that should be set when running `cabal install` can now be set in the `cabal_install` resource via the `environment` hash.  As part of this, I modified the `flag` method of `FlagStore` to properly ensure that a non-boolean resource attribute's value is properly set when passed to `cabal install`.