Moving some slice settings ui code into a class so it is easier to move ...

...later

Took out some dead code (confusing me about were my changes needed to go)
Renamed some classes for clarity Widget to Window
Changed the edit icon to be something more familiar