Small fixes

Fixed MidiMessage using global context instead of object context
Fixed $.log error when logging undefined
Refactoring
Multiple changes

Implemented components:
MidiDispatcher #8
Dispatcher #3
Timer #6

Updated Midi module #5