Add support for namespaces in APIRoot.