Allow container scoped relations between subordinate services

This fixes LP 1396625 by relaxing the checks for creation of container scoped relations. One commit changes AddRelation and the other changes InferEndpoints.