API refactoring. Namespaces, inheritance, inherit permissions from owner