Read API key from config file

The API key is now read from a config file, instead of being hardcoded
into the script.