Adapt to pulsar-rest-api 0.0.4

@tomaszdurka please review.
Previously it was #1
So when you get data with `status === 'RUNNING'` then it means job is finished and you can remove it, run onfinish() and check status if finished?