[transaction] move RQLRewriter in Transaction
This remove the last ``AttributeError`` magic. The ``RQLRewriter`` needs a Session. Its
reset is handled in ``Session`` code to handle that
# migrate default format for TriInfo `comment_format` attributesync_schema_props_perms('TrInfo')commit()