reorganize the core & add mongodb dependency
9 files changed