Return cookies as a long JS string.
Add login button that generates cookie-setting scripts
Logs in to the domain on button click
More general form finding method