I'm not sure if I'm processing these pull requests out of order - but from an architectural point of view we really want to avoid this type of construct.  The main gallery module should not know about other modules.  I think the other change where we do event based relationship additions is the right way to go here.