Better sessions, part 2: add event before_next_request, for used for rollback