Very basic rules engine

Signed-off-by: Ken Barber <ken@bob.sh>