Add Explicit API for runtime settings

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 codeine settings will be done as a followup to this.)