Made keyId unique for backend editing.
Extending constructor for support of credentials
Add storing of API keys.