get_api_key function

Retrieve project API key if stored, if not, set and retrieve