Updated rule interface. Added rule base and rule services.