Simplify private WSGI middleware.
Move more of private handlers functionality to superclass.
Remove commented-out code.