refactor Model as a standalone module
add integration tests for model module
switch from underscore to lodash
pass instance methods to model constructor
use correct join name in unit test
cleanup deferred to build proper join
use waterline-schema module
set default attributes
use proper schema attributes in core