Add critical feature and bug fixes

You can now delete Inheritance, change external rules on the fly (double
click the rule) and I squashed some bugs.