Added saving abilities.

Included parts of Steven Goodwin's "Steevs MIDI Library" to dump a MIDI file.

Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
Merge branch 'master' of github.com:xiaomao5/MusicKeyboard