Added playAfterStop and stopAfterPlay events

Use these to handle setting buttons visible / invisible.  Instead of
toggling the state of play/pause, just have two functions, one does
setPause, the other does setPlay.