driver.phantomjs: Implement timeout.
coprocessor.phantomjs: Reimplement timeout and retry handling.