add webhook middleware.
webhook: do not bother to get user for listeners with an arity of 2.