Add Explicit API for runtime settings (Issue #367, part 1)

Only read initial values for runtime settings from env vars once, then
cache them in a global structure; this allows for embedders to easily
control all settings, regardless of env var settings.

(Note that codegen settings will be done as a followup to this.)