changes to support saving via element autorelations when running resourceToModel()
Merge branch 'feature/transactions' of github.com:openeyes/OpenEyes into feature/transactions