Module Dependency Graph Reorg

This PR reorganizes the module dependency graph, so that the core package is the central dependency for the project.