fixed the issue that caused jasmine test to fail, and revise api exposed. 

We probably want a way to create a new key, and revoke an old one.