NodeJS like event emitting/absorbing for c++.