Added support for configuring event listeners
Resources already use a method called events()

https://github.com/opscode/chef/blob/master/lib/chef/resource.rb#L600