Working version of relationshipGeneratorPlugin.

Config contains dummy triggers/rules, some cleanup still required.