Fix: correct config references in index.php bootstrap
Fix: correct config references in api.php bootstrap
More fixes for access to the [debug] parameters.
Added better checking for debug settings, plus default values.
Merge branch 'dev' into prod