Rename "namespace middleware" to "endpoint middleware" to better reflect how it is used