Implement scope/properties for BelongsTo (+ fix foreign key matching)
Added test for belongsTo scope/properties

Note: its seems that keyFrom and keyTo were mistakingly reversed in
BelongsTo.prototype.create, please double check. The added test cases
now pass with pk/fk switched.
Merge branch 'fabien-feature/dynamic-scope'
Fix scoped destroyAll: only use 'where', not full 'filter' args
Merge pull request #187 from fabien/fix/scope-destroy

Fix scoped destroyAll: only use 'where', not full 'filter' args
relation: add `scope._target` for `hasOne`

Add `_target` property to the scope method created by `hasOne`
relationship. The `_target` property is used by loopback-sdk-angular.
Merge pull request #189 from strongloop/feature/include-target-for-hasOne

relation: add `scope._target` for `hasOne` (1.x, 2.x)
datasource: support connectors without `getTypes`

Asking connectors to provide `getTypes` function is a breaking
change, connectors working with loopback 1.3 no longer works
in newer versions.
Merge pull request #190 from strongloop/feature/handle-connector-without-types

datasource: support connectors without `getTypes`