Further implementation of mongoDB provider + integration tests.
Merged some files.