Adapt to pulsar-rest-api 0.0.4

@tomaszdurka please review.
Previously it was #1
What do you thinkg about being consistent and passing chat here too?