add NamespacesRepository interface and implementation, modify transfer objects