modal dialog for attributes + plugin refactoring

Attribute entries can now fire a custom dialog window to handle their
values
Plugins have been refactored to subclass PSTool - much code removed!