Added error handling for duplicate IDs and fixed support of custom _id's.
Merge pull request #30 from dvazquez1027/CustomIDs

Added error handling for duplicate IDs and fixed support of custom _id's...
Fixed expect in test for POST of empty XML document.