Create or update a namespace

Creates a new namespace or updates an existing one.