Flushing session in log_status.
Moving integrity error handling for Status to web handler.
Adding BaseHandler.get_current_user_entity()