Refactoring _get_environment.

- Removes use of "global" by putting the env name in another
  namespace.
- Splits logic into digestible pieces.
- Also makes slight change to GoogleCredentials docstring.

This is the first chunk of #80. I'm happy to wait until #82 is in and rebase.
Yes. It is in a credentials class, so discussing a service that doesn't require credentials is off-topic.