Added a utility for measuring surface contact betwen objects in a label volume.
cleanup: Removed unused imports
shell: Save and restore frame geometry across restarts (not just window size)
Fixes #1006