Change many uses of environment variables to use .fetch(), to fail early if not value given.

This makes it easier to work with different environments, as the app will completely fail to start in cases where the minimum environment variables have not been set.