Rewrote the MIDI internals, no longer depending on rwmidi library, midi events fire on engine thread
Tweak to MIDI handling