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

...ermining and handling of failed responses
nitpick: since this is returning true if the response is good, maybe this method should be called "validate_response" or something like that?