First crack at prototyping a very simple headless rules engine