Relationship reworking

Cleaned them up a bit, and extended to allow relationships between multiple instances of the same class.
Add related_agents
First cut at related agents