add support for passing in cookies

This adds support for passing cookies through to PhantomJS