Rules endpoint

Use the rules endpoint to translate a node group rule condition into PuppetDB query syntax.