validate_script: add more robust checking
validate_script: add more robust checking

Add repeat loops for all queries to adjust for latency or slow cloud
side update.

Signed-off-by: Paul Barrette <b35f8c7746b911163b905ff32288e207dc9b1bbc@gmail.com>

rcwoolley/device-cloud-python,rcwoolley/device-cloud-python