Clean up configuring API keys to work either from YML or ENV variables (for heroku).