libbalde/app: added "before request" hooks