Added events support to cosmo rest client