Allow users to select which events to listen to

Move event handlers into anonymous classes
Add options to config.yml to select events