Set listeners on REST calls

Fixes #237