SERVER-939 abilitiy to distribute collections in a single db

Port tests from d_chunk_manager_tests.cpp for metadata_loader_test.cpp
SERVER-939 abilitiy to distribute collections in a single db

Fix memory leak when error is encountered while creating a CollectionManager