Added many to many functionality. On creation and editing Domains and Types one can select the Types and Attributes respectively