Major refactoring of namespaces in ShrewFramework.