Add cabal_sandbox_info function

Reports whether the current working directory is within a
sandbox. Useful to check before installing Cabal packages into the
global registry.
Merge pull request #2541 from puffnfresh/cabal-sandboxes-info

Add cabal_sandbox_info function
Adieu l'ami.

 @jimweirich -- You will be missed.