Made mocha-phantomjs an external dependency

Also upgraded `mocha-phantomjs` to version 3.5.2.