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

...ermining and handling of failed responses
I'm going to leave this out for now. I'm not seeing it being all that useful at this point.