Ignore '.idea' directory (JetBrains IDEs).
In model's 'updateAttributes', save data returned by model's 'toObject()' to make sure setters have been applied (e.g. foreign keys are transformed to ObjectId for mongo).
Merge pull request #293 from hbj/updateAttributes_and_foreign_keys

Model's 'updateAttributes()' does not apply setters