retry initializing WebDriver for max 3 times
add a time deadline to all phantomjs operations