Extracted MongoDB configuration logic to separate class
Rewritten logic to build cluster
Minor fixes
Updated startup logic