Annotate the Wsgi class with slots

By specifying a __slots__ list, accidentally misspellings can be caught
and class instances' variables are known up front.
Consistent use of segments

Instead of sometimes referring to URL pieces as segments and sometimes
as components, standardizes this to be segments across the base module.