Consolidate model code into core folder
Add support for polymorphic associations
Add some documentation for associations
Only use mapped type if it's been defined
Add type mappings
Add pagination to hasMany
jshint
Merge commit '04d92e0'