cubicweb #3333979 Rql rewrite [in-progress]

Use the rql rewrite function for the rules defined in the Yams schema. See:

prioritynormal
typebug
done in<not specified>
load2.000
load left2.000
closed by<not specified>
patch[ComputedRelationType] Rewrite the tree if a relation type has a rule (ComputedRelationType) before execute it, related to #3333979 [rejected][dbapi] Rewrite the tree if the schema has a rule before execute it, see #3333979 [rejected]