Substitution rule deletion support

Implements deletion of advanced substitution rules.
Reordering support for substitution rules

Wires up the configuration screen and the model to support this.
Implement pattern match compilation and validation

Automatically compiles new pattern matches from the configuration screen
for the advanced substitution list functionality.
Automatically drop empty substitution rules

This is done both from the configuration area and the loader.
Automatically save open editors

If the user hits 'Okay' on the configuration dialog, search for any open
editors and automatically close them.