Added callbacks for MIDI snapshots.
Added MidiBuffer class to Lua.