cubicweb #893500 cleanup json controller and ajax api [resolved]

imo we've a lot of variant on the same theme that could be unified

prioritynormal
typeenhancement
done in3.9.0
load2.000
load left0.000
closed by<not specified>