Added some functionality to Application to allow for a widget's event handlers to be added on top of the state's.