App: Add 'env' key which is guessed from the environment.

This will later be used to load configuration files, set up debugging
options, etc.
Refactor: 'const' only if it makes sense, 'private static' otherwise.