added phantomjs restart script
new hooks for phantom and log.io