Regenerate a project API key

Regenerates the API key for a project. The old API key will immediately stop working and a new key will be generated.