environment setting

The console-mode is now registered in the system's environment and used to
avoid displaying html error messages.