Merge pull request #833 from leider/master

updating mongo driver to version 2 + deps push
fixing strange behavior of mongo: limiting big results to 1000 elements when calling toArray
- I failed to write unit test for that