Adapt to pulsar-rest-api 0.0.4

@tomaszdurka please review.
Previously it was #1
This cannot be done because `rest` is a service and it doesn't accept event listeners for the request it will create next.
Also this is absolutely not required because the request is sent only in the `process.nextTick`, so callbacks are attached before request is sent.