Adds event triggering to callbacks

This pull request follows up on #137, to allow events to be listened to, rather than just overwriting default behaviours through setting of callback functions within audiojs.

Also fixes some regex that the closure compiler was incorrectly escaping.