Updated PhantomJS middleware and added docs for PhantomJS.