Upgraded extract_sampleNames_and_barcodes.py to handle REST API queries for either clinical or R&D torrent server.