Add more tests and fix toJSON
Code clean up
Allow to reference a model as type by name
Allow the id(s) to be redefined by subclass
Use for-in loop to support properties from the super class
Merge pull request #20 from strongloop/juggler-tidyup

Add more tests and fix toJSON