Add code to upload linked entities to kinvey bass and remove keys