Fix workpieces not beeing removed from groups when "part of" is unchecked

Remove object in every blender group when uncheked.
Extracted group code from execute method

Moved away code dealing with group handling for better readability
Started dealing with workpiece count

- Added properties
- Added UI
- Duplicate object / with link if asked to