Better Logic in Ontologie Management

Fixed some minor issues in UI. Added automatic inverse relations.
Checks, if according to Ontology, there is space for more of the same
type of relations to be added.