Add UI for generating new api key.

- Fixes #373