Created Rule Manager and Integrated the Changes

Have Merged The Data base changes for creating the rule From UI. 
Added Functionality for exit on Back button press when at Home Screen.