Create means for being able to mark segmentViews for removal

Also, add a function that allows one to get the actionView before
the given one.
Remove orphan segments

Not quite working yet. Close, but not perfect.