Automatically detect the trust level of the application before attempting to get the environment variables.
Merge pull request #101 from MindscapeHQ/medium-trust-detection

Automatically detect the trust level of the application before attemptin...