Node.js: set the 'upgrade' flag on the request object when appropriate
Improve emulation of Node.js upgraded request objects