All the backend part has been rewritten to handle multiple constraints in the config (== multiple queries). Also did some linting. Still to be done: frontend part and doc.
This closes #58.
This is to prepare for the integration of Tcl data, see #58.