Support the trace_slowreqs.enable config switch.

Patch for making the trace_slowreqs.enable setting operational. I have kept the behavior that the middleware is activated even when no reporters are configured. Or should I modify the patch so that the middleware will be only activated when at least one reporter is configured?