Adding mongoDB support plus refactored application structure.