Make sure model definition is built when attaching to a DS
Move resolveType to ModelBuilder
Add index to name prop
Merge pull request #25 from strongloop/ds-attach

Fixes for data source juggler