Some more UI work

Partially implemented context menu for rule list. Implemented Rule
Template page of the options dialog.