refactor to let send_data take an APDU* for data
refactor writing object to it's own library function

ykpiv_save_object(), use that for writing certs
refactor set_chuid() to use ykpiv_save_object()
refactor delete action to use ykpiv_save_object()