Kraken: new api ptobject external_code

Will be use by jormungandr to remove the database.
Can the type be explained with typedef? (What are those strings?) And it'll do a smaller line ;)