generalize retry_request to just retry

I would like to add metrics around query_tcga_barcode and I think a more
generalized retry helps facilitate that.
add timer instrumentation around query_tcga_barcode request
return successful attempt number
extract prefix for reuse
instrument attempts and failures
instrument query_tcga_barcode so we can tune timeout, sleep, and attempts