Added experimental MongoDB backend, wrote unit tests for it.