api.key.migrate function

After updating the acs package, installs an archived API key from a previous installation.