Fixed bug in a test
Removed dead code from a test
getMetadataField is now in DatabaseDocument interface
Added @Override to MongoDocument.getContentField
Added support for atomic insert of documents with attachments

Fixes #198
Merge pull request #199 from remen/198_attachment_race_condition

Added support for "atomic" insert of documents with attachments