phantomjs - ignore SSL errors and allow local file to access remote resources

fixes #97
extract cookie parsing into a separate module

https://github.com/sindresorhus/parse-cookie-phantomjs
0.4.0