Simplify Request::globalEnvironment() a bit.
Fix bug in Response->flushHeaders().