Feature/api key generation

Users can regenerate API keys. Functionality complete. This feature uses the older UI. UI adjustments will be made post functional review
mixing tabs and spaces in here, please do a whitespace commit.