Add namespace and repo state functions, and use dmd_msc for faster
building.
Add isShallow.