Adapt to pulsar-rest-api 0.0.4

@tomaszdurka please review.
Previously it was #1
Don't be confused!
 * I delete it from jobList because it's finished.
 * If we do this then we need more than RUNNING/FINISHED because there are two other statuses that could finish the job: FAILED, KILLED.