Legacy UI: refactor to encapsulate IJ imports

Refactored all legacy UI classes so that they will not explicitly import
ij.* classes.

The intent is to keep these classes encapsulated in the IJ1Helper.