CLOUDIFY-1928 Support more events. Changed apis to weakly typed