Add debug configuration and middleware for plugin system
Add comprehensive debug configuration options including profiling, logging, and caching settings. Implement PluginDebugMiddleware to handle debug routes, sanitize sensitive data, and log debug information. Update PluginDebugCommand to collect and display debug data for plugins.