actually check if task has succeeded
check state
Merge pull request #17 from dimagi/misck

tweaks to soil job poll