Rename $allRulesSql ~> $allRules

The rules contain more than just SQL.
Rename $ruleSql ~> $rule
Remove (very old) prototype executable