Additional custom event handlers

Added 2 new event handlers, these are used to react to buffer events in an asynchronous way. The code is needed for the boblight integration with omxplayer.