Configuration for error traces and diagnostics dashboard
Inject config into modules instead of reading from globals.
Fix config injection, reorganize to a folder per module.