Adapt to pulsar-rest-api 0.0.4

@tomaszdurka please review.
Previously it was #1
I am a bit confused with above code. 
- You update job when it's running - then delete it?
- I would rather expect this to work more like switch case