BLK-160 Refactors RESTPolling block to allow blocks to customize the det...

...ermining and handling of failed responses