Fix autodetection of the RVM Ruby string if the GEM_HOME contains more subpaths after the Ruby string part.
Do not allow reading from the socket if the HTTP spec indicates that there is not supposed to be a request body, unless the app hijacks the socket.

This fixes a potential Denial of Service caused by WebSocket support.