Modified Code As per Coding Standard

Modified RuleManager Class to create Rule from UI.
Tested By creating Rule "Device is unlocked Vibrate","HeadPhone connected Vibrate",