Minor refactor.
Make sure the right new dimension icon is shown
Sanitized methods to set relationships concerning dimensions. Implemented delete of relationships in cube diagram.
New version in case people want to test.