walmartlabs/lazojs — pull request #51 by jstrimpel (2014-07-26 00:54:45+00:00)
Title: implicitly set model id in model params

There are two different cases in which we need to set the model id in the params.

1. Upon construction if an id attribute exists
2. Upon CRUD "create" if an id attribute is returned in the data

If a model has an id it will be automatically set in the `model.params` in the 2 scenarios described above. The key "id" in the `model.params` should be considered reserved and is used to implicitly pass the model's id to its syncher.