Added PubSub event handling. Used this in MIDI to allow subscribing of functions to events. Updated test.js to reflect this. Updated Oscillator class to be something useful and actually work as it should. Now it's playable using the MIDI module. Yay