Add stacktrace filtering/navigation middleware.