Start making Morphological_Segmentation plugin macro-recordable.

Move runSegmentation to CustomWindow.