Refactored music module to use a constant tail output of the underlying script, to enable mode-switching, and to allow playing or pausing the current song.