Cleaning up a lot of namespace stuff, adding enum to namespacemanager, adding transition canceling utility functions