Kill webkit_server when parent closes stdin

Alternative to #646. This should work cross-platform (tested on MRI and JRuby).
Maybe default `parent` to `0` so we don't need this here?