Cleanup mixin tests
Refactor modelTo logic into lookupModelTo
Merge branch 'master' into fix/refactor-modelto
Tiny fix: use setAttributes
Enable DL definition of embedsMany + referencesMany
Refactored embedsMany (relationName vs. propertyName)
Fix scopeMethods closure issue
add count to relations

Signed-off-by: Jaka Hudoklin <jakahudoklin@gmail.com>
Fix formatting
Implement scope.defineMethod/relation.defineMethod
Allow runtime override of scope/relation order query param
Merge pull request #210 from fabien/fix/embeds-many

Tiny fix: use setAttributes
Refactor modelTo logic into lookupModelTo
Merge pull request #209 from fabien/fix/refactor-modelto

Refactor modelTo
Enable DL definition of embedsMany + referencesMany
Refactored embedsMany (relationName vs. propertyName)
Fix scopeMethods closure issue
Fix formatting
Fix conflicts
Clarified tests, fixed BelongsTo.prototype.create

Added clarified test-case based on previous documentation example.

Fixed BelongsTo.prototype.create - although the foreignKey was set on
the model instance,
it was never actually persisted, unless you'd issue a separate call to
save the 'parent' model.