Fix for using Atomic operations in update function

Added a function which rewrites update values to work with Atomic operations. More info on Atomic operations http://www.mongodb.org/display/DOCS/Atomic+Operations
Fix when _$set isEmpty
Merge pull request #5 from d4mn/master

Fix for using Atomic operations in update