handle the common format of element relations where we have the "direct" relation and the "assignment" relation using "through".
this is necessary so that the element model returned by resourceToModel() contains both, so that element validation won't fail when its saved.
Merge branch 'feature/transactions' of github.com:openeyes/OpenEyes into feature/transactions