Initial defquery and defrule implementations
Support loading defined rules directly from namespaces.