Updated the COSMIC handling to use the config. It can therefore log in to the site, and download data using an entirely new process. Resolves #48