Cookie feature

This adds the option to add cookies to the page, that is a snapshot of. The pull request also includes a fix regarding communication between grunt and phantomjs, that could most probably be solved better.