Added ability to regenerate API key.