Switch to PTY emulation to capture the output of PHP

It's faster and less hacky.

https://groups.google.com/forum/#!topic/nodejs/ZnXOn-JI6RY