Updated preliminary ApiKey interface to have the proper functionality encompassed in the ApiKey class rather than dangling functions