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

...ermining and handling of failed responses
I'll update that right now. For some reason I was having a hard time coming up with a good name for that yesterday.