refactored setting of reference objects into the abstracted model class
Merge branch 'feature/transactions' of github.com:openeyes/OpenEyes into feature/transactions