Cleanup mixin tests
Refactor modelTo logic into lookupModelTo
Merge branch 'master' into fix/refactor-modelto
Enable DL definition of embedsMany + referencesMany
Refactored embedsMany (relationName vs. propertyName)
Fix scopeMethods closure issue
Fix formatting
Implement scope.defineMethod/relation.defineMethod
Allow runtime override of scope/relation order query param
Enable DL definition of embedsMany + referencesMany
Refactored embedsMany (relationName vs. propertyName)
Fix scopeMethods closure issue
Fix formatting
Fix conflicts
Handle toObject in updateAttributes

Since one can call updateAttributes with any kind of properties (as
opposed to save, which uses toObject internally), any objects that
correspond to toObject should be handled as such. This is particularly
the case with List objects, as used by embedsMany.
Merge pull request #221 from fabien/fix/updateAttributes

Handle toObject in updateAttributes
Merge pull request #205 from fabien/feature/plugins

Cleanup mixin tests
Merge pull request #213 from fabien/feature/scope-rel-methods

Implement scope.defineMethod/relation.defineMethod
Merge pull request #214 from fabien/fix/scope-order

Allow runtime override of scope/relation order query param
Merge pull request #211 from fabien/fix/relationTypes

Fix relationTypes