Added an 'addkey' command to the api.