Add support for registering handling events using REST.