Middleware to add Whoops error handling to a site using Circuit. (Glibly stolen and altered from https://github.com/franzliedke/whoops-middleware)
$router->registerMiddleware('whoops', new \CircuitMiddleware\Whoops\Whoops);
$router->addPrerouteMiddleware('whoops');