Refactoring switch_manager and port_manager. Separating extension APIs in its own sub-namespace (member obj)