Add stdin for spawned processes

This change adds simple write functionality to stdin of a `spawn`ed process.

[Issue #11446](https://github.com/ariya/phantomjs/issues/11446)

---

Note:  Since this is probably best considered a "new/experimental feature", I think it might best be part of the 2.0 release...