Fix for issue #28 handling of "id" when inserting or updating documents.
Fix two failing test cases.
Merge pull request #29 from mihail-stanchev/master

Fix for issue #28 handling of "id" when inserting or updating documents.