CWEP-0002 RQL rewriting

See http://hg.logilab.org/review/cwep for the up-to-date version.

tagged by