Bugifx: properly set log in context
Previous change did not work since the access log callback function is called after all middlewares and handler done their job and it is too late to alter anything. We use BeforeNextFunc() to inject trace-id since this is the information we can uniformly extract. Rest is to refactoring.