apigen: option --debug enables switches to development mode

The debug enabling must be done at very first application code.
The only place for debug mode detection for the rest of the application is the Configurator's debug mode.
Merge pull request #337 from milo/pull-debug-mode

The --debug option fixed, TRUE by default