Added API key manager for writing out API keys to files