added events support to cosmo rest client