Add sampling media / compartment to community as well when adding a measured quantity
With the implementation in !32 (merged) it is possible to add a measured quantity to a community - but it doesn't check that the sampling medium and the compartment are part of the community as well.
This should be fixed - so that those elements higher in the hierarchy (compartment > sampling medium > measured quantity (and maybe even units)) are added to the community as well (if necessary).
If we would allow the root entries to change, it would also be necessary to check the community membership as well.
For example: In case we have a community entry for CO2 concentration, which so far was part of the air sampling medium, but its root entry should be changed from air to Troposphere later => Make sure that this Troposphere is then also part of the community.