Added BeatListener

BeatListeners can now be registered in the AudioCore. They are triggered
on every beat and when the bpm changes.