Added rule engine and rule addition in interaction shell.
Merge branch 'add-rule-engine'