Changed to using cookie flag

Instead of using a JSON file for cookies, they can just be specified on
the command line with a ‘—cookie’ flag.