remove unnecessary config lines.[C
Fix middleware setup based on how we do server.cfg now.