When saving an entity, allow $id to be set to ent.id if ent.id$ and ent._id are undefined
Merge pull request #13 from darsee/master

When saving an entity, allow $id to be set to ent.id