Add a method to get permission
In CubicWeb, there is method
cw_has_perm on an entity. It is useful to know a permission with an eid. It would be useful to have this also in an encapsulated way in this library (in fact it even seems not possible to get the info with RQL).