fastcgi and websocket commonalities moved to base class