Adapt to pulsar-rest-api 0.0.4

@tomaszdurka please review.
Previously it was #1
Yeah. This is a definitely a good step but I wanted to make it in another PR but let's do it now.