Split event handler / plugin logic into seperate methods.
Split event handler / plugin logic into seperate methods.

This is done in preparation of separating the event manager and plugin manager.

automatron/automatron