lua : implement backend for the collect lib

dt.gui.libs.collect.filter([rules) : rules

allows to both get and set filtering rules,

the content of a rule is a bit complex, set the lib to whatever
you want, get it and dump in lua...

... or regenerate the usermanual, that works too...